码迷,mamicode.com
首页 > 移动开发 > 详细

Android studio下载依赖包很慢

时间:2016-11-30 22:01:33      阅读:753      评论:0      收藏:0      [点我收藏+]

标签:net   build   oschina   osi   hub   builds   classpath   rip   epo   

 build gradle文件

buildscript {
repositories {
//jcenter()
maven { url ‘http://maven.oschina.net/content/groups/public/‘ }
}
dependencies {
classpath ‘com.android.tools.build:gradle:2.2.2‘

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

 或者

buildscript {
repositories {
jcenter()
}
dependencies {
classpath ‘com.android.tools.build:gradle:2.2.2‘
classpath ‘com.github.dcendents:android-maven-gradle-plugin:1.5‘
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

Android studio下载依赖包很慢

标签:net   build   oschina   osi   hub   builds   classpath   rip   epo   

原文地址:http://www.cnblogs.com/fans4-334/p/6119522.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!