一、调整方法之一
buildscript {
repositories {
google()
jcenter()
//maven { url 'https://maven.aliyun.com/repository/google' }
//maven { url 'https://maven.aliyun.com/repository/central' }
}
dependencies {
// classpath "com.android.tools.build:gradle:4.1.1"
classpath "com.android.tools.build:gradle:4.3.1"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
//maven { url 'https://maven.aliyun.com/repository/google' }
//maven { url 'https://maven.aliyun.com/repository/central' }
}
}