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()
    }

猜你喜欢

转载自www.cnblogs.com/bluestorm/p/10348207.html