当前位置: 代码迷 >> Android >> 异常:Found both android-support-v4 and android-support-v13 in the dependency list
  详细解决方案

异常:Found both android-support-v4 and android-support-v13 in the dependency list

热度:617   发布时间:2016-05-01 10:35:23.0
错误:Found both android-support-v4 and android-support-v13 in the dependency list.
Found both android-support-v4 and android-support-v13 in the dependency list.

这是什么错?console下一直打印这些东西。工程引入了一个另一个工程(以jar包的形式),结果工程上有小红叉,但是找不到错。why?

[2013-06-07 18:22:02 - ActionBarDemo] Found 2 versions of android-support-v4.jar in the dependency list,
[2013-06-07 18:22:02 - ActionBarDemo] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-06-07 18:22:02 - ActionBarDemo] All versions of the libraries must be the same at this time.
[2013-06-07 18:22:02 - ActionBarDemo] Versions found are:
[2013-06-07 18:22:02 - ActionBarDemo] Path: D:\workspace4android\ViewPagerIndicator\libs\android-support-v4.jar
[2013-06-07 18:22:02 - ActionBarDemo]  Length: 271754
[2013-06-07 18:22:02 - ActionBarDemo]  SHA-1: 53307dc2bd2b69fd5533458ee11885f55807de4b
[2013-06-07 18:22:02 - ActionBarDemo] Path: D:\workspace4android\ActionBarDemo\libs\android-support-v4.jar
[2013-06-07 18:22:02 - ActionBarDemo]  Length: 393154
[2013-06-07 18:22:02 - ActionBarDemo]  SHA-1: 307c1cc532eabbf1d135b43e5c983c9da700449d
[2013-06-07 18:22:02 - ActionBarDemo] Jar mismatch! Fix your dependencies

------解决方案--------------------
字面意思,关键应该是dependency list

不同的project,是在不同环境下建立的吗,我也不知道dependency是否一定要相同,但可能存在一定影响
------解决方案--------------------
把你工程文件里libs文件夹里面的android-support-v13 删掉
  相关解决方案