修改build.gradle文件中的buildscript和allprojects中的:
google()
jcenter()
mavenCentral()
改为:
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public'}
注意:本文归作者所有,未经作者允许,不得转载