美文网首页
Android support libraries版本冲突

Android support libraries版本冲突

作者: 河马过河 | 来源:发表于2018-09-04 15:15 被阅读85次

1、问题

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.0.2. 
Examples include com.android.support:animated-vector-drawable:27.1.1 and com.android.support:support-v13:27.0.2 less... (Ctrl+F1) 

There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. 
One such incompatibility is compiling with a version of the Android support libraries that is not the latest version 
(or in particular, a version lower than your targetSdkVersion).

2、解决办法

1、查看工程里面External Libraries


1536044848(1).png

从中可以发现有不同的版本号
2、更改对应的引入库版本

    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.android.support:support-v13:27.1.1'
河马过河微信公众号.jpg

相关文章

网友评论

      本文标题:Android support libraries版本冲突

      本文链接:https://www.haomeiwen.com/subject/pbwgwftx.html