0

I am facing this Error , evertime I Build the Project.

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.

Amir Dora.
  • 2,831
  • 4
  • 40
  • 61
I Tech
  • 7
  • 6

1 Answers1

0

You can resolve this conflict by changing dependency versions in build.gradle file:

It's clear that you are using two different version of dependencies. 26.1.0 and 27.1.1

change the one with 26.1.0 and make it 27.1.1

build.gradle

enter image description here

if still you are having problem refer to this Error While creating new project with android studio 3.0.1

Amir Dora.
  • 2,831
  • 4
  • 40
  • 61