因为 jcenter() 的仓库有时候会链接不上或者速度缓慢,可以使用国内阿里云的镜像仓库,速度嗖嗖的(人家这么描述的。。。)
buildscript {
repositories {
//阿里云的镜像库
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/public" }
}
}
allprojects {
repositories {
//阿里云的镜像库
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/public" }
}
}