Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
这是因为访问不到maven.google.com了,请把maven的url换成阿里仓
注意:上下两处url都要替换!
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.aliyun.com/repository/google'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.aliyun.com/repository/google'
name 'Google'
}
}
}
https://developer.aliyun.com/mvn/search
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)