我已经下载了sherlock库文件,现在我已经创建了新项目。当我要添加这个库时,在控制台
中给出了这样的错误[2013-06-03 04:49:41 - SharelockDeemo] Found 2 versions of android-support-v4.jar in the dependency list,<br>
[2013-06-03 04:49:41 - SharelockDeemo] but not all the versions are identical (check is based on SHA-1 only at this time).<br>
[2013-06-03 04:49:41 - SharelockDeemo] All versions of the libraries must be the same at this time.<br>
[2013-06-03 04:49:41 - SharelockDeemo] Versions found are:<br>
[2013-06-03 04:49:41 - SharelockDeemo] Path: D:\AndroidTool\workspace\librarySharelock\libs\android-support-v4.jar<br>
[2013-06-03 04:49:41 - SharelockDeemo] Length: 271754<br>
[2013-06-03 04:49:41 - SharelockDeemo] SHA-1: 53307dc2bd2b69fd5533458ee11885f55807de4b<br>
[2013-06-03 04:49:41 - SharelockDeemo] Path: D:\AndroidTool\workspace\SharelockDeemo\libs\android-support-v4.jar<br>
[2013-06-03 04:49:41 - SharelockDeemo] Length: 484258<br>
[2013-06-03 04:49:41 - SharelockDeemo] SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308<br>
[2013-06-03 04:49:41 - SharelockDeemo] Jar mismatch! Fix your dependencies<br>
答案 0 :(得分:2)
您是否尝试过对您的应用程序和Actionbarsherlok图书馆使用相同的.jar文件?您应该使用app的lib文件夹中的那个。或库的lib文件夹中的那个
答案 1 :(得分:1)
从actionbarsherlock库或您的演示项目中删除android-support-v4.jar文件将解决您的问题
答案 2 :(得分:1)
从项目中删除android-support-v4.jar
答案 3 :(得分:0)
终于解决了这个问题
导入库文件夹 - &gt;然后创建新项目,只需从属性中删除库文件,删除项目jar文件及其工作
之前我有attche jar文件库和项目,但它不起作用