I came across this exception while adding espresso to an android project. I already try the link that comes with this exception
**Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (23.3.0) and test app (23.1.1) differ**
also I add the following line according to other thread I found
**androidTestCompile 'com.android.support:support-annotations:23.1.0'**
But the problem still persist. I am using the following configurations:
buildToolsVersion "23.0.2"
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
Any ideas, thanks.