After updating new Bumblebee Android Studio, I created a new project and see that the build.gradle changed with new form
plugins {
id 'com.android.application' version '7.1.0' apply false
id 'com.android.library' version '7.1.0' apply false
id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
How could I import new classPath as before? Such as
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$ktl_gradle_ver"
}
I wanna to import classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version")
CodePudding user response:
Finally I found solution, and I comment here for someone need it
id 'androidx.navigation.safeargs.kotlin' version '2.4.0' apply(false)
CodePudding user response:
Use buildscript before plugins it will work and put your classpath there in the dependencies block
buildscript {
dependencies {
classpath("com.google.dagger:hilt-android-gradle-plugin:2.40.5")
}
}
plugins {
id 'com.android.application' version '7.1.0-rc01' apply false
id 'com.android.library' version '7.1.0-rc01' apply false
id 'org.jetbrains.kotlin.android' version '1.5.30' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}