Issue
I'am getting this error message when I try to add espresso libraries by gradle. How can I fix it ?
Solution
Problem is that espresso uses older versions of support libraries than you are. Since you already have then in your project, exclude them from espresso. So, in your build.gradle file, you should replace:
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
with:
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
If you have more conflicts, try excluding more support modules (like appcompat, design etc).
Answered By - Crepi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.