转载至:https://blog.csdn.net/Timmy_zzh/article/details/80679240
我的项目中处理方式
buildscript {
repositories {
maven { url "https://maven.google.com" }
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven { url 'https://maven.google.com/' }
jcenter()
}
}