Here is the error itself:

Error: Conflict with dependency 'junit: junit'. Resolved versions for app (4.11) and test app (4.12) differ. See http://g.co/androidstudio/app-test-app-conflict for details.

  • one
    Change dependency in pom file or build.gradle. Change the version of the library. - Maxim Drobyshev

1 answer 1

The main APK and test APK use the common classpath. The build fails for the reason that the dependencies of the main APK and test APK have the same library, but the versions of the libraries are different. If the assembly did not fall, the application could work in test mode not in the same way as in normal mode.

To get rid of this error, you need to fix the version of dependencies, so that they are the same.

In the text of the error you are just sent to this explanation: http://g.co/androidstudio/app-test-app-conflict