Androidstudio中build.gradle classpath如何添加
- build.gradle classpath如何添加
build.gradle classpath如何添加
升级as之后,gradle版本也升级了,导致project的build.gradle中的写法也不一样了。
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath 'xxxxxx' //在这里添加你的classpath
}
}
plugins {
id 'com.android.application' version '8.0.0' apply false
id 'com.android.library' version '8.0.0' apply false
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}