解決android studio引用遠程倉庫下載慢(JCenter下載慢)

原文作者: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協議下載

http://jcenter/bintray.com/

替換項目根目錄下build.gradle中的

    repositories {
          jcenter()
    }
  • 1
  • 2
  • 3
  • 1
  • 2
  • 3

爲:

    repositories {
       jcenter(){ url 'http://jcenter.bintray.com/'}
    }
  • 1
  • 2
  • 3
  • 1
  • 2
  • 3
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章