I\'m trying to integrate espresso into my application for ui testing. Here are my dependencies in Gradle
dependencies {
compile fileTree(dir: \'libs\', inclu
The problem is in this file: android-sdk\extras\android\m2repository\com\android\support\test\runner\0.3\runner-0.3.pom
here:
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-annotations</artifactId>
<version>22.2.0</version>
<scope>compile</scope>
</dependency>
if you set 22.2.1 instead 22.2.0 it will work
So after a lot of digging around, I found I needed to change the dependency for the support annotations.
So I needed to change
compile 'com.android.support:support-annotations:22.2.0'
to
androidTestCompile 'com.android.support:support-annotations:22.+'