添加中央仓库,和阿里云镜像服务,我这边是这样处理的,仓库顺序也很重要,有代理最好也挂下
mavenCentral()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }//阿里云镜像服务
jcenter()
maven { url "https://jitpack.io" }
// maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
google()
// maven { url "https://maven.google.com" }