admin管理员组

文章数量:1571543

解决AndroidStudio-sync下载太慢的问题

在项目的build.gradle中加入,然后再sync即可

maven{ url "http://maven.aliyun/nexus/content/groups/public/"}

完整代码

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        maven{ url "http://maven.aliyun/nexus/content/groups/public/"}
      //这个google地址下载太慢了,把上面⬆️的代码加上即可
        maven {
            url 'https://maven.google/'
            name 'Google'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven{ url "http://maven.aliyun/nexus/content/groups/public/"}
        //这个google地址下载太慢了,把上面⬆️的代码加上即可
        maven {
            url 'https://maven.google/'
            name 'Google'
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

参考:解决Android studio 下载慢问题

本文标签: 太慢AndroidStudioSync