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-espress