方式一 更改project下的 build.gradle下的 jcenter()或者添加maven 阿里云地址
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public'
}
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.2"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public'
}
}
}
方式二 待写