【发布时间】:2020-09-22 01:23:59
【问题描述】:
gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
gradle-wrapper
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
找不到 com.android.tools.build:gradle:4.0.0。
在以下位置搜索:
【问题讨论】:
-
应该可以正常工作,尝试使用VPN,可能无法与Google服务器建立连接。
-
我正在使用 VPN
标签: android gradle build.gradle