Android Studio gradle插件版本和gradle版本对应关系

1、gradle插件版本配置位置:

project对应的build.gradle文件中

复制代码
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
复制代码

2、gradle版本配置位置:

gradle/wrapper/gradle-wrapper.properties文件中

distributionUrl=http\://services.gradle.org/distributions/gradle-3.3-all.zip

3、版本对应关系如下

官网链接:https://developer.android.google.cn/studio/releases/gradle-plugin.html#updating-plugin

猜你喜欢

转载自blog.csdn.net/xiaozhude/article/details/80906589