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.

All com.android.support libraries must use the exact same version specification

See original GitHub issue

when add Room Persistence Library into my project,then i got a problem,it bothers me for a long time.

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 25.1.1, 24.0.0. Examples include com.android.support:support-compat:26.0.0 and com.android.support:animated-vector-drawable:25.3.1

And,my support library version is 25.3.1.What is the reason for this problem?Thank you for your help.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
chriscoderdrcommented, Jan 2, 2018

I was able to make the error go away excluding support dependencies from rom library

implementation("android.arch.persistence.room:runtime:$versions.arch") {
        exclude group: 'com.android.support'
    }
annotationProcessor("android.arch.persistence.room:compiler:$versions.arch") {
    exclude group: 'com.android.support'
}
1reaction
florina-muntenescucommented, Sep 7, 2017

Make sure you clean and sync your project. Room doesn’t have anything to do, for now, with the support libraries.

Read more comments on GitHub >

github_iconTop Results From Across the Web

All com.android.support libraries must use the exact same ...
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 27.0.2, ...
Read more >
Android - All support libraries must use the exact same ...
“All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 27.1.1, 27.1.0 ...
Read more >
All com.android.support libraries must use the exact same ...
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 25.1.1, ...
Read more >
Solved: Error: All com.android.support libraries must use ...
Error: All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, ...
Read more >
Error: All com.android.support libraries must use the exact ...
Error: All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes) #1068.
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