1.首先自然安装好android studio,打开后会弹出第一个问题点取消。
2.点击file,打开setting,进行如下设置 mirrors.opencas.cn
等待自行安装好所需要的SDK
前两部不一定有效,时好时坏的
3.gradle问题,点击C盘-用户-用户名-.gradle。在此之下新建一个init.gradle文件,将下面内容复制进去
allprojects{
repositories {
def ALIYUN_REPOSITORY_URL = 'https://maven.aliyun.com/repository/public/'
def ALIYUN_JCENTER_URL = 'https://maven.aliyun.com/repository/jcenter/'
def ALIYUN_GOOGLE_URL = 'https://maven.aliyun.com/repository/google/'
def ALIYUN_GRADLE_PLUGIN_URL = 'https://maven.aliyun.com/repository/gradle-plugin/'
all { ArtifactRepository repo ->
if(repo instanceof MavenArtifactRepository){
def url = repo.url.toString()
if (url.startsWith('https://repo1.maven.org/maven2/')) {
project.logger.lifecycle "Reposito