Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

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

Closed
omaraflak opened this issue Mar 4, 2017 · 12 comments

Comments

@omaraflak
Copy link

Hello, thanks for your great library !

I get the error in my build.gradle on this line compile 'com.android.support:appcompat-v7:25.2.0' :

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes).

I can still run the project, but the compile line is underlined in red and it annoys me a bit ...

Do you have any suggestion ? Thanks !

@Aiden-Ziegelaar
Copy link

This is because the library has not been updated to use the new support libraries, presently it is using:

  • com.android.support:appcompat-v7:25.1.0
  • com.android.support:design:25.1.0

The fix for now would be to use 25.1.0 libraries for your project, or to download and build the project yourself using the new libraries.

@Serchinastico
Copy link
Contributor

Hello, fellow programmers!

Yes, as @Aiden-Ziegelaar comments the reason for the warning is that Dexter is using an old version of the appcompat library. We are planning to release v4.0.0 today, we will make sure that version is completely updated. However, if you don't feel like updating there you can always exclude the appcompat dependency from Dexter to use your own. To do so, you have to load Dexter in your gradle file as follows:

testCompile('com.karumi:dexter:4.0.0') {
        exclude group: 'com.android.support', module: 'appcompat-v7'
        exclude group: 'com.android.support', module: 'design'
}

Remember that you should provide those dependencies by yourself or the project won't even compile.

Thanks for reporting and helping us to improve!

@Serchinastico
Copy link
Contributor

I'm closing this issue for now, we will release the updated version (#122)

@omaraflak
Copy link
Author

Great ! I'm looking forward to see the new version !

@mackongo
Copy link

Was this solved?

@omaraflak
Copy link
Author

Yes, you have to use version 4.0.0 of the library.

@mackongo
Copy link

I still experience an error after the changes.

@sudheerkumarnokku
Copy link

compile 'com.android.support:appcompat-v7:25.1.0'
testCompile 'junit:junit:4.12'
compile 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.google.firebase:firebase-auth:11.0.4'

@sudheerkumarnokku
Copy link

compile 'com.android.support:appcompat-v7:25.1.0'
testCompile 'junit:junit:4.12'
compile 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.google.firebase:firebase-auth:11.0.4'
is correct or not
tell me

@am9072
Copy link

am9072 commented Apr 5, 2019

For those who still getting some error is because of android-support conflicting versions
Solution :
https://youtu.be/UDLqFbat7n0

This will solve your problem.

@mgpx
Copy link

mgpx commented Apr 9, 2019

For those who still getting some error is because of android-support conflicting versions
Solution :
https://youtu.be/UDLqFbat7n0

This will solve your problem.

Thank you for sharing, it worked for me too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants
@Serchinastico @mackongo @omaraflak @Aiden-Ziegelaar @mgpx @sudheerkumarnokku @am9072 and others