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