gradle repo conf - maven-central.storage-download.googleapis.com

 

    repositories {
        google()
        jcenter()
        maven { // The google mirror is less flaky than mavenCentral()
         url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
            // 添加备用地址 
            artifactUrls "https://maven.aliyun.com/repository/public/"
//         artifactUrls "http://maven.aliyun.com/nexus/content/groups/public/"
        }
        // 添加中央仓库
        mavenCentral()
        mavenLocal()
    }

 

posted @ 2019-02-02 12:37  petercao  阅读(681)  评论(0编辑  收藏  举报