只需要将build.gradle改成以下就好,下载速度 sui sui sui的
buildscript { repositories { maven{ url ‘http://maven.aliyun.com/nexus/content/groups/public/‘ } mavenCentral(); google() jcenter() } dependencies { classpath ‘com.android.tools.build:gradle:3.2.0‘ // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven{ url ‘http://maven.aliyun.com/nexus/content/groups/public/‘ } google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }
参考于https://blog.csdn.net/jiang25810/article/details/83503829,非常感谢了