Android studio ERROR: Failed to resolve: com.android.support.test.espresso:espresso-core:2.2.2


ERROR: Failed to resolve: com.android.support.test.espresso:espresso-core:2.2.2

ERROR: Failed to resolve: com.android.support:appcompat-v7:25.3.1

Android studio跑別人的項目,經常會出現這種不匹配的情況。
解決方法:
1.

在這里插入圖片描述
2.添加

maven {
    url "https://maven.google.com"
}

 

結果:

allprojects {
    repositories {
        jcenter()
        maven { url "https://maven.google.com" }
    }
}

 

 

在這里插入圖片描述

如果還有問題,看這篇文章
https://stackoverflow.com/questions/45097825/failed-to-resolve-com-android-support-test-espresso

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM