Moon Light Box

Time is Money

Android - Warning:Conflict with dependency 'com.android.support:support-annotations'.

| Comments

We use gradle to import libraries. And it will cause dependency problem.

Gradle build error message:

Warning:Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (20.0.0) and test app (22.0.0) differ.

Solution:

Add below configure in build.gradle file.

allprojects {
    ...
    configurations.all {
        resolutionStrategy.force 'com.android.support:support-annotations:23.0.0'
    }
    ...
}

Reference:http://code.google.com/p/android-test-kit/issues/detail?id=136
Reference:https://github.com/googlesamples/android-testing/issues/22

Comments

comments powered by Disqus