在.gradle中设置,网上很多,自己搜索做个笔记
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
// 添加阿里云 maven 地址
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
// jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
// 添加阿里云 maven 地址
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
// jcenter()
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Android developer 最新国内镜像:http://wear.techbrood.com
中科院开源软件协会:www.opencas.org
网易开源镜像站:http://mirrors.163.com/
搜狐开源镜像站:http://mirrors.sohu.com/
浙江大学开源软件镜像站:http://mirrors.zju.edu.cn
北京理工大学开源软件镜像站:http://mirror.bit.edu.cn
华中科技大学开源软件镜像站:http://mirrors.hust.edu.cn/
中山大学开源软件镜像站:http://mirror.sysu.edu.cn/
大连理工大学开源软件镜像站:http://mirror.dlut.edu.cn/
北京交通大学开源镜像站:http://mirror.bjtu.edu.cn
兰州大学开源软件镜像站:http://mirror.lzu.edu.cn/
上海交通大学开源软件镜像站:http://ftp.sjtu.edu.cn/
清华大学开源软件镜像站:http://mirrors.tuna.tsinghua.edu.cn/
天津大学开源软件镜像站:http://mirror.tju.edu.cn/
中国科学技术大学开源软件镜像站:http://mirrors.ustc.edu.cn/
东北大学开源软件镜像站:http://mirror.neu.edu.cn/
重庆大学镜像源: http://mirrors.cqu.edu.cn/
东软信息学院:mirrors.neusoft.edu.cn
ADT,SDK, stutio等压缩包下载地址, google不行访问这个吧:
http://downloads.puresoftware.org/files/android/
http://tools.android-studio.org/index.php
国内Android Studio中文网:
http://www.android-studio.org/index.php/download/hisversion