Conflict with dependency...Resolved versions for app (1.0.2) and test app (1.0.6) differ
See original GitHub issueKotlin 1.0.6 Android Studio 2.3.0-canary 3
testCompile "com.nhaarman:mockito-kotlin:1.1.0"
Error:Conflict with dependency ‘org.jetbrains.kotlin:kotlin-stdlib’ in project ‘:app’. Resolved versions for app (1.0.2) and test app (1.0.6) differ. See http://g.co/androidstudio/app-test-app-conflict for details.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
app'. Resolved versions for app (26.1.0) and test app (27.1.1 ...
Based on your screenshot i found two working solutions: First solution: add to dependencies of your gradle module this line
Read more >Conflict with dependency in project ':app'. Resolved versions ...
Conflict with dependency in project ':app'. Resolved versions for app (15.0.2) and test app (12.0.1) differ - (onesignal&firebase issue) #613.
Read more >Fix conflict with dependency, Resolved versions for app diff
I came across this error in Android, when I create a project with minSDK 21 and target/compile SDK 26: Error:Execution failed for task ......
Read more >How to solve dependency conflicts with Maven | by Liam
Here is an example, this project has 2 dependencies, and both of them depend on the Guava library with different versions.
Read more >Core - Android Developers
Declaring dependencies; Feedback; Core and Core-ktx Version 1.9.0 ... for the artifacts you need in the build.gradle file for your app or module:....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve found a way to solve this issue using the following: testCompile “org.jetbrains.kotlin:kotlin-reflect:$kotlin_version”
Hope it works for you too.
I had a very similar problem and I’m also familiar with this already but anyways I did it wrong. Posting here for others to find out if they have the same issue.
We are using
kotlin-stdlib-jre7
. That’s why I was forcing that dependency to be the dependency I want. But they are of course not the same andresolutionStrategy.force
just matches if they have the same group and the name.So make sure that you are forcing
kotlin-stdlib
just like mentioned here.