Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resolved versions for app (26.1.0) and test app (27.1.1) differ

Tags:

This is the full error-

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.

I know that there are a lot of solutions to this type of answers but I am an absolute beginner in android studio and I couldnt understand those solutions like the command line interface interacting with gradle and so on...

I was looking for a simple solution to this problem if there is. Thanks a lot!

like image 312
ubuntu_noob Avatar asked May 01 '18 16:05

ubuntu_noob


2 Answers

Recently I was getting this error again....I just go to build->rebuild project and it works everytime for me.

like image 149
ubuntu_noob Avatar answered Oct 07 '22 17:10

ubuntu_noob


Change all the implementation in your build gradle app For Example.

  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'

Change It all to latest version(27.1.1) and sync the project.

like image 24
Kopi Bryant Avatar answered Oct 07 '22 17:10

Kopi Bryant