gradle-wrapper.properties 配置
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
#distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
#distributionUrl=https\://mirrors.aliyun.com/macports/distfiles/gradle/gradle-8.8-bin.zip
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
- 腾讯云镜像 Gradle下载地址:
https://mirrors.cloud.tencent.com/gradle/
- 阿里云镜像 Gradle下载地址:
gradle5-8
https://mirrors.aliyun.com/macports/distfiles/gradle/
gradle 1-5
https://mirrors.aliyun.com/gradle/
build.gradle配置
repositories {
maven { url 'https://mirrors.cloud.tencent.com/nexus/repository/maven-public/' }
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://repo1.maven.org/maven2/' }
maven { url 'https://jitpack.io/' }
mavenCentral()
jcenter()
}