1、gradle插件版本配置位置:
project对应的build.gradle文件中
buildscript { repositories { google() jcenter() } dependencies { classpath \'com.android.tools.build:gradle:3.5.0\' // 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=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
3、版本对应关系如下
官网链接:https://developer.android.google.cn/studio/releases/gradle-plugin