最佳答案
更改代理编辑gradle.properties
HTTPS:
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=8080
HTTP:
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=8080
要么
更改build.gradle中的存储库
repositories {
maven {
url "http://repo1.maven.org/maven2"
}
}