已经被这个问题困扰很久了!!!!!!!
解决:使用阿里云镜像服务:
在最外层的build中进行配置
allprojects {
repositories {
mavenCentral()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }//阿里云镜像服务
maven { url "https://jitpack.io" }
google()
jcenter()
}
}
图片: