Eclipse导入library的时候报:Found 2 versions of android-support-v4.jar in the dependency list

来源:互联网 发布:Linux下重启apache 编辑:程序博客网 时间:2024/06/04 19:28

错误类型:

[2014-04-28 11:56:03 - 新闻] Found 2 versions of android-support-v4.jar in the dependency list,[2014-04-28 11:56:03 - 新闻] but not all the versions are identical (check is based on SHA-1 only at this time).[2014-04-28 11:56:03 - 新闻] All versions of the libraries must be the same at this time.[2014-04-28 11:56:03 - 新闻] Versions found are:[2014-04-28 11:56:03 - 新闻] Path: D:\workspace\新闻\libs\android-support-v4.jar[2014-04-28 11:56:03 - 新闻]  Length: 627582[2014-04-28 11:56:03 - 新闻]  SHA-1: db0f122c99ef9f90dbab3fada6d191f2880cbb8e[2014-04-28 11:56:03 - 新闻] Path: D:\workspace\library\libs\android-support-v4.jar[2014-04-28 11:56:03 - 新闻]  Length: 385685[2014-04-28 11:56:03 - 新闻]  SHA-1: 48c94ae70fa65718b382098237806a5909bb096e[2014-04-28 11:56:03 - 新闻] Jar mismatch! Fix your dependencies

分析 : 有2个v4的jar包
解放方案 :直接将library中的v4jar覆盖自己项目中的v4jar即可!

并且要注意的是,当我们导入library的时候Android的API版本一定要一致,不然的话引入会出错!
这里写图片描述

3 0
原创粉丝点击