Resolved versions for app (26.0.0) and test app (27.1.1) differ problem solved in Android Studio

(2667 Views)


Error:Execution failed for task ':app:preDebugAndroidTestBuild'. > Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.

Facing this issue in Android Studio. Here are the two solutions:


Solution 1

Modify build.gradle file's implementation to the latest version and sync the project

implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support:design:27.1.1' implementation 'com.android.support:support-annotations:27.1.1'

Solution 2

Remove this lines from your dependencies in build.gradle file

androidTestImplementation 'com.android.support.test.runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

        

Solution Didn't Worked 3 DownvotesDownvote



Comments



Search