原文作者:http://blog.csdn.net/linglingchenchen/article/details/62236723
第一種方法
使用開源中國的maven庫
阿里雲的(速度飛快):http://maven.aliyun.com/nexus/content/groups/public/
替換項目根目錄下build.gradle中的
repositories {
jcenter()
}
- 1
- 2
- 3
- 1
- 2
- 3
爲:
repositories {
maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
- 1
- 2
- 3
- 1
- 2
- 3
第二種方法
修改https爲 http協議下載
替換項目根目錄下build.gradle中的
repositories {
jcenter()
}
- 1
- 2
- 3
- 1
- 2
- 3
爲:
repositories {
jcenter(){ url 'http://jcenter.bintray.com/'}
}
- 1
- 2
- 3
- 1
- 2
- 3