Gradle 修改 Maven 仓库地址(阿里镜像)

android studio打开项目后一直Gradle:Resolve dependecies 'app_XXAPk'很长时间?

 

uildscript {
    repositories {
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'

        // 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/' }
        jcenter()
    }
}

转:https://my.oschina.net/ranvane/blog/820262

 

posted @ 2017-10-14 16:13  芊鸟咔咔  阅读(10307)  评论(0编辑  收藏  举报