DJ-DOO DJ-DOO - 4 months ago 16x
Android Question

Android Espresso Issue - Dependency conflict

I'm trying to integrate espresso into my application for ui testing. Here are my dependencies in Gradle

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile ''
compile ''
compile 'com.github.bumptech.glide:okhttp-integration:1.3.1@aar'
compile 'com.squareup.okhttp:okhttp:2.0.0'
compile 'de.hdodenhof:circleimageview:1.3.0'
compile ''
compile ''
androidTestCompile ''
androidTestCompile ''
compile ''
androidTestCompile ''
compile project(':common')
compile project(':service')

So all my espresso dependencies are included. However when I try to build I get this error:

Warning:Conflict with dependency ''. Resolved versions for app (22.2.1) and test app (22.2.0) differ.

Has anyone encountered this? I've found it reported here however there's no resolution. Does anyone have a fix for this?


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 '' to androidTestCompile ''