AndroidStudio gradle配置多个代码仓库repositories

最近在学习as3.2,总是会莫名其妙遇到些问题,这里做一下笔记。

  • 代码仓库repositories
  • gradle下载网站(下载速度相当的快!)
  • AndroidStudio及ADK下载网站

代码仓库repositories

源自文章【(AndroidStudio)gradle配置多个代码仓库repositories

 jcenter在国内的话,基本没人使用了,当然作为android开发者24小时翻墙,是可以用得。。这里非常推荐使用阿里,速度,那叫一个快。。。千万别把这些一股脑地都放到自己的项目中。用不了,还耽误搜索时间。

repositories {
    mavenCentral()
    maven { url "https://jitpack.io" }
    maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
    maven { url 'http://maven.oschina.net/content/groups/public/' } 
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } 
    maven { url "http://maven.springframework.org/release" } 
    maven { url "http://maven.restlet.org" } 
    maven { url "http://mirrors.ibiblio.org/maven2" }
    maven {
        url "http://repo.baichuan-android.taobao.com/content/groups/BaichuanRepositories/"
    }
    maven { url 'https://maven.fabric.io/public' }
    jcenter()
    google()
}

gradle下载网站

http://services.gradle.org/

AndroidStudio及ADK下载网站

http://www.android-studio.org/

猜你喜欢

转载自blog.csdn.net/easy_purple/article/details/85010596