I see this when I go into "project structure":
当我进入“项目结构”时,我看到了这一点:
I didn't realize I was using the experimental version of the gradle plugin.
我没有意识到我正在使用gradle插件的实验版本。
How can I switch to the non-experimental version of the plugin?
如何切换到插件的非实验版本?
1 个解决方案
#1
0
You can open your project's build.gradle, it looks like:
您可以打开项目的build.gradle,它看起来像:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
classpath 'com.android.tools.build:gradle:1.5.0' is the key, you can change the version dependence on your android studio's version(mine is v1.5.1).
classpath'com.android.tools.build:grad:1.5.0'是关键,你可以改变你的android studio版本的版本依赖(我的是v1.5.1)。
#1
0
You can open your project's build.gradle, it looks like:
您可以打开项目的build.gradle,它看起来像:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
classpath 'com.android.tools.build:gradle:1.5.0' is the key, you can change the version dependence on your android studio's version(mine is v1.5.1).
classpath'com.android.tools.build:grad:1.5.0'是关键,你可以改变你的android studio版本的版本依赖(我的是v1.5.1)。