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