I\'m trying to integrate espresso into my application for ui testing. Here are my dependencies in Gradle
dependencies { compile fileTree(dir: \'libs\', inclu
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.+'
compile 'com.android.support:support-annotations:22.2.0'
androidTestCompile 'com.android.support:support-annotations:22.+'