[英]How to add project level dependency class path in Android Studio Bumblebee
由於我在項目級別 build.gradle 文件中將我的 Android Studio 更新為Bumblebee
,因此包含如下plugins
塊:
plugins {
id 'com.android.application' version '7.1.1' apply false
id 'com.android.library' version '7.1.1' apply false
id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
在這里,以前位於頂級 build.gradle 文件中的存儲庫設置現在位於 settings.gradle 文件中。
通過此更改,我無法向我的應用程序添加新插件,我想將以下插件添加到我已添加到我的應用程序級別build.gradle
的項目中。
apply plugin: 'kotlin-android-extensions'
apply plugin: "androidx.navigation.safeargs.kotlin"
為了完成這項工作,我需要在我的項目級別 build.gradle 中添加 class 路徑,但是由於 build.gradle 結構最近發生了變化,我不確定如何在我的項目級別build.gradle
中添加以下行
dependencies {
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.0"
}
我試圖在https://developer.android.com/studio/releases/gradle-plugin中找到解決方案,但是我看不到任何解決方案,但是我知道這個更改來自 Android Studio Bumblebee 和 gradle 插件版本 7.0.0
請幫我添加依賴項。
使用這一行:
id 'androidx.navigation.safeargs.kotlin' version '2.5.0-alpha01' apply false
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.