在repositories中添加如下
google()
jcenter()
maven { url"https://jitpack.io" }
mavenCentral()
maven {
url"https://plugins.gradle.org/m2/"
}
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven {url"https://maven.google.com"}
你还可以使用阿里的云仓库https://maven.aliyun.com/mvn/view