问题:
Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
解决:
将google()放或添加到jcenter()前面
//在build.gradle(Projiect)中的repositories 添加google()
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
}
}
allprojects {
repositories {
google()
jcenter()
}
}