as jcenter()下載緩慢

第一種反覆搞定

第一種方法
使用開源中國的maven庫
阿里雲的(速度飛快):http://maven.aliyun.com/nexus/content/groups/public/

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

  repositories {
          jcenter()
    }
爲:

 repositories {
        maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
    }

第二種方法
修改https爲 http協議下載http://jcenter/bintray.com/替換項目根目錄下build.gradle中的

 repositories {
          jcenter()
    }
爲:

    repositories {
       jcenter(){ url 'http://jcenter.bintray.com/'}
    }
解決Android studio遇見Could not find common.jar (android.arch.core:common:1.0.0).錯誤

不知道怎麼回事就發生的錯誤,翻牆找到的解決方法,如下:
Error:Could not find common.jar (android.arch.core:common:1.0.0).
Searched in the following locations:
    https://jcenter.bintray.com/android/arch/core/common/1.0.0/common-1.0.0.jar

修改的位置:Gradle Scripts --->build.gradle(Project:項目名)--->allprojects{}裏面;
解決方法:
    repositories {
        maven{url"https://maven.google.com"}
        jcenter()
        maven{url 'https://jitpack.io'}
    }


————————————————
版權聲明:本文爲CSDN博主「珍惜現再」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/u014649598/article/details/91437130

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章