• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes

Problem :

After updating my android studio to android studio 2.3 I facing below error message. I know it is giving me just the hint as my app is running normally but it looks really strange.

“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:animated-vector-drawable:25.1.1 and com.android.support:mediarouter-v7:24.0.0”

by (7.5k points)  

1 Answer

0 votes

Solution :

You need to add explicitly a library with your old version but with the new version number which was my case it was com.android.support:customtabs:26.1.0 so I need to add the below one :

implementation "com.android.support:customtabs:27.0.2

Take your library from the second item, and just implement it with a version number from the first.

Note: Please do not forget to press the sync now so that the graddle can rebuild your dependency graph and it can also make sure if there are any more conflicts.

Detailed Explanation:
you may be baffled by your error message as it reads do not use the customtabs so how I have the conflict!!
Well you didn't use it straight but one of the libraries uses an older version of the customtabs internally, that’s why you need to ask for it directly.


Hope this solves your issue.

by (31.9k points)