解决android-support-v4.jar 冲突

来源:互联网 发布:淘宝如何缴纳保证金 编辑:程序博客网 时间:2024/05/22 14:15

出现此问题的场景为:在项目导入多个jar包时,由于在其他jar包中也同样包含android-support-v4.jar,并且导入的版本不是同一时间的,导致冲突。

[2015-12-30 16:13:26 - App] Found 4 versions of android-support-v4.jar in the dependency list,
[2015-12-30 16:13:26 - App] but not all the versions are identical (check is based on SHA-1 only at this time).
[2015-12-30 16:13:26 - App] All versions of the libraries must be the same at this time.
[2015-12-30 16:13:26 - App] Versions found are:
[2015-12-30 16:13:26 - App] Path: D:\Codes\App-Android\branches\eacher\App\libs\android-support-v4.jar
[2015-12-30 16:13:26 - App] Length: 621451
[2015-12-30 16:13:26 - App] SHA-1: 5896b0a4e377ac4242eb2bc785220c1c4fc052f4
[2015-12-30 16:13:26 - App] Path: D:\Codes\App-Android\branches\teacher\App-master\App\src\main\libs\android-support-v4.jar
[2015-12-30 16:13:26 - App] Length: 621451
[2015-12-30 16:13:26 - App] SHA-1: 5896b0a4e377ac4242eb2bc785220c1c4fc052f4
[2015-12-30 16:13:26 - App] Path: D:\Codes\App-Android\branches\teacher\App-master\library\libs\android-support-v4.jar
[2015-12-30 16:13:26 - App] Length: 349252
[2015-12-30 16:13:26 - App] SHA-1: 612846c9857077a039b533718f72db3bc041d389
[2015-12-30 16:13:26 - App] Path: D:\Codes\App-Android\branches\teacher\library-App\libs\android-support-v4.jar
[2015-12-30 16:13:26 - App] Length: 621451
[2015-12-30 16:13:26 - App] SHA-1: 5896b0a4e377ac4242eb2bc785220c1c4fc052f4
[2015-12-30 16:13:26 - App] Jar mismatch! Fix your dependencies

解决方法:复制其中一个jar包中的android-support-v4.jar,然后复制到起冲突的所有jar包中,覆盖掉原来的android-support-v4.jar文件,再clear一遍就可以了。

0 0
原创粉丝点击