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.

Resolved versions for app (23.1.1) and test app (22.2.1) differ

See original GitHub issue

Anytime i try to sync my gradle i get this message

Error:Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (23.1.1) and test app (22.2.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details.

These i believe are the essential excerpts from my gradle file

testCompile 'junit:junit:4.12'
    testCompile 'org.robolectric:robolectric:3.1-SNAPSHOT'
    testCompile 'org.assertj:assertj-core:3.3.0'
    testCompile 'com.squareup.assertj:assertj-android:1.1.1'
compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:recyclerview-v7:23.1.1'
    compile 'com.android.support:cardview-v7:23.1.1'
    compile 'com.android.support:support-v4:23.1.1'

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

27reactions
JakeWhartoncommented, Feb 22, 2016

The link in the exception tells you how to remedy this.

Here’s an example: https://github.com/JakeWharton/u2020/blob/05a57bf43b9b61f16d32cbe8717af77cd608b0fb/build.gradle#L136-L140

1reaction
TomIsYourNamecommented, Mar 14, 2017

@JakeWharton Thanks! But anyone knows why that happens?

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 >
Resolved versions for app (26.0.0) and test app (27.1.1) differ ...
Resolved versions for app (26.0.0) and test app (27.1.1) differ problem solved in Android Studio. Android studio is a common software for ...
Read more >
Support Library Revision Archive - Android Developers
This page provides details about older Support Library package releases.
Read more >
Release Notes - Play services - Google Developers
December 08, 2022. The latest update to Firebase includes changes to: Firebase Android BoM (Bill of Materials); Firebase Cloud Messaging.
Read more >
Firebase Android SDK Release Notes
App Check Debug Testing version 16.1.0. Updated to accommodate the release of the updated App Check Kotlin extensions library.
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