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

前端 未结 30 2198
忘掉有多难
忘掉有多难 2020-11-21 05:10

After updating to android studio 2.3 I got this error message. I know it\'s just a hint as the app run normally but it\'s really strange.

All com.andr

30条回答
  •  面向向阳花
    2020-11-21 05:57

    I had the same problem before and I got the solution for it.

    I just added the libraries that had the another version but with the same version of my support:appcompat.

    For your error for example :

    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

    *The solution is to compile the versions of these libraries like that :

    compile 'com.android.support:mediarouter-v7:25.1.1'

    -if another library had the same issue and had another version just compile it with your support:appcompat version

    This resolved my problem and I hope it resolves yours.

    Best wishes :)

提交回复
热议问题