question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conflict with dependency...Resolved versions for app (1.0.2) and test app (1.0.6) differ

See original GitHub issue

Kotlin 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:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

7reactions
paulnunezmcommented, Aug 24, 2017

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.

0reactions
tasomaniaccommented, Aug 8, 2017

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 and resolutionStrategy.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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found