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

发布了8 篇原创文章 · 获赞 1 · 访问量 451

猜你喜欢

转载自blog.csdn.net/qq_15059515/article/details/103706808