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 \'
dependencies {
//...
// Solves "versions for app (23.3.0) and test app (23.1.1) differ"
androidTestCompile 'com.android.support:support-annotations:23.3.0'
// Android JUnit Runner
androidTestCompile 'com.android.support.test:runner:0.5'
// JUnit4 Rules
androidTestCompile 'com.android.support.test:rules:0.5'
}