Android 下载库慢的问题 地址替换
// 文件夹/gradle/wrapper/gradle-wrapper.properties 下修改 services.gradle.org/distributions 为 以下代码mirrors.cloud.tencent.com/gradle// 全局的 build.gradlerepositories {maven { url "http://maven.aliyun.com/reposi
·
// 文件夹/gradle/wrapper/gradle-wrapper.properties 下修改 services.gradle.org/distributions 为 以下代码
mirrors.cloud.tencent.com/gradle
// 全局的 build.gradle
repositories {
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/public" }
mavenLocal()
mavenCentral()
}
allprojects {
repositories {
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://jitpack.io" }
mavenLocal()
mavenCentral()
}
}
更多推荐
已为社区贡献1条内容
所有评论(0)