这是因为访问不到maven.google.com了,请把maven的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