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")
3
Answers
Finally I found solution, and I comment here for someone need it
Use buildscript before plugins it will work and put your classpath there in the dependencies block
Step 1:
Open
Step 2: Add
buildscript
above plugins then add dependencies block insidebuildscript
.Reference Code: