android studio gradle 国内代理

使用阿里云的国内镜像仓库地址,就可以快速的下载需要的文件

修改项目根目录下的文件 build.gradle :

buildscript {
    repositories {
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
    }
}

allprojects {
    repositories {
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
    }
}


你可能感兴趣的:(android,studio,gradle)