Skip to content Skip to sidebar Skip to footer

Gradle: Resolved Versions For App And Test App Differ

When I add the dependency: compile 'net.bytebuddy:byte-buddy-android:0.7.8' in my app, I get this error: Conflict with dependency 'net.bytebuddy:byte-buddy'. Resolved versions for

Solution 1:

You can force the version in your test using:

androidTestCompile 'net.bytebuddy:byte-buddy-android:0.7.8'

Solution 2:

You can force the version without adding an extraneous dependency by adding this to your gradle file

configurations.all {
    resolutionStrategy {
        force 'net.bytebuddy:byte-buddy-android:0.7.8'
    }
}

Post a Comment for "Gradle: Resolved Versions For App And Test App Differ"