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' }
    }
}

  

posted @ 2022-06-07 11:30  Baby~She  阅读(585)  评论(0)    收藏  举报