Gradle 配置国内仓库
1.在项目的build.gralde文件中添加/修改如下配置(下面配置加上了阿里云镜像仓库)
allprojects {
repositories {
jcenter()
google()
maven { url "https://jitpack.io" }
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'https://repo.spring.io/milestone' }
}
}

浙公网安备 33010602011771号