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”
}

在這裏插入圖片描述

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

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