Jar mismatch! Fix your dependencies

1、在Android开发中,会遇到包名不一致的情况,如下所示

[2015-11-21 11:56:03 - test] Found 2 versions of android-support-v4.jar in the dependency list,
[2015-11-21 11:56:03 - test] but not all the versions are identical (check is based on SHA-1 only at this time).
[2015-11-21 11:56:03 - test] All versions of the libraries must be the same at this time.
[2015-11-21 11:56:03 - test] Versions found are:
[2015-11-21 11:56:03 - test] Path: D:\workspace\test\libs\android-support-v4.jar
[2015-11-21 11:56:03 - test]     Length: 627582
[2015-11-21 11:56:03 - test]     SHA-1: db0f122c99ef9f90dbab3fada6d191f2880cbb8e
[2015-11-21 11:56:03 - test] Path: D:\workspace\library\libs\android-support-v4.jar
[2015-11-21 11:56:03 - test]     Length: 385685
[2015-11-21 11:56:03 - test]     SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
[2015-11-21 11:56:03 - test] Jar mismatch! Fix your dependencies    
 
分析  :有2个v4的jar包
解放方案 :直接覆盖v4jar,就是保持 两个包一样, 就是保证引用类库的v4包与lib文件下的包一致。
posted @ 2015-11-21 21:39  落日云烟  阅读(175)  评论(0编辑  收藏  举报