码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2015-03-07 22:50:37      阅读:5161      评论:0      收藏:0      [点我收藏+]

标签:library   found-2-v   

错误类型:

[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版本一定要一致,不然的话引入会出错!
技术分享

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

标签:library   found-2-v   

原文地址:http://blog.csdn.net/xlgen157387/article/details/44120497

(0)
(2)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!