美文网首页
Android studio添加阿里云镜像仓库

Android studio添加阿里云镜像仓库

作者: 夜瑾漠 | 来源:发表于2019-05-26 14:46 被阅读0次

因为 jcenter() 的仓库有时候会链接不上或者速度缓慢,可以使用国内阿里云的镜像仓库,速度嗖嗖的(人家这么描述的。。。)

buildscript {
    repositories {
        //阿里云的镜像库
        maven {
            url "http://maven.aliyun.com/nexus/content/groups/public/"
        }
        google()
        jcenter()
    }
}

allprojects {
    repositories {
        //阿里云的镜像库
        maven {
            url "http://maven.aliyun.com/nexus/content/groups/public/"
        }
        google()
        jcenter()
    }
}

相关文章

网友评论

      本文标题:Android studio添加阿里云镜像仓库

      本文链接:https://www.haomeiwen.com/subject/btaxtctx.html