我在项目中添加了FB 3.7 sdk项目引用,
现在我收到错误:
[2014-02-28 10:47:48 - MyAssistant] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-02-28 10:47:48 - MyAssistant] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-02-28 10:47:48 - MyAssistant] All versions of the libraries must be the same at this time.
[2014-02-28 10:47:48 - MyAssistant] Versions found are:
[2014-02-28 10:47:48 - MyAssistant] Path: C:\Users\Michael\Desktop\מיכאל\Personal Assistant\Jars\facebook- android-sdk-3.7\facebook\libs\android-support-v4.jar
[2014-02-28 10:47:48 - MyAssistant] Length: 621451
[2014-02-28 10:47:48 - MyAssistant] SHA-1: 5896b0a4e377ac4242eb2bc785220c1c4fc052f4
[2014-02-28 10:47:48 - MyAssistant] Path: C:\AndroidWorkspace\MyAssistant\libs\android-support-v4.jar
[2014-02-28 10:47:48 - MyAssistant] Length: 385685
[2014-02-28 10:47:48 - MyAssistant] SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
[2014-02-28 10:47:48 - MyAssistant] Jar mismatch! Fix your dependencies
[2014-02-28 10:47:52 - MyAssistant] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-02-28 10:47:52 - MyAssistant] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-02-28 10:47:52 - MyAssistant] All versions of the libraries must be the same at this time.
[2014-02-28 10:47:52 - MyAssistant] Versions found are:
[2014-02-28 10:47:52 - MyAssistant] Path: C:\Users\Michael\Desktop\מיכאל\Personal Assistant\Jars\facebook- android-sdk-3.7\facebook\libs\android-support-v4.jar
[2014-02-28 10:47:52 - MyAssistant] Length: 621451
[2014-02-28 10:47:52 - MyAssistant] SHA-1: 5896b0a4e377ac4242eb2bc785220c1c4fc052f4
[2014-02-28 10:47:52 - MyAssistant] Path: C:\AndroidWorkspace\MyAssistant\libs\android-support-v4.jar
[2014-02-28 10:47:52 - MyAssistant] Length: 385685
[2014-02-28 10:47:52 - MyAssistant] SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
[2014-02-28 10:47:52 - MyAssistant] Jar mismatch! Fix your dependencies
[2014-02-28 10:47:53 - MyAssistant] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-02-28 10:47:53 - MyAssistant] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-02-28 10:47:53 - MyAssistant] All versions of the libraries must be the same at this time.
[2014-02-28 10:47:53 - MyAssistant] Versions found are:
[2014-02-28 10:47:53 - MyAssistant] Path: C:\Users\Michael\Desktop\מיכאל\Personal Assistant\Jars\facebook-android-sdk-3.7\facebook\libs\android-support-v4.jar
[2014-02-28 10:47:53 - MyAssistant] Length: 621451
[2014-02-28 10:47:53 - MyAssistant] SHA-1: 5896b0a4e377ac4242eb2bc785220c1c4fc052f4
[2014-02-28 10:47:53 - MyAssistant] Path: C:\AndroidWorkspace\MyAssistant\libs\android-support-v4.jar
[2014-02-28 10:47:53 - MyAssistant] Length: 385685
[2014-02-28 10:47:53 - MyAssistant] SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
[2014-02-28 10:47:53 - MyAssistant] Jar mismatch! Fix your dependencies
[2014-02-28 10:48:33 - MyAssistant] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-02-28 10:48:33 - MyAssistant] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-02-28 10:48:33 - MyAssistant] All versions of the libraries must be the same at this time.
[2014-02-28 10:48:33 - MyAssistant] Versions found are:
[2014-02-28 10:48:33 - MyAssistant] Path: C:\Users\Michael\Desktop\מיכאל\Personal Assistant\Jars\facebook- android-sdk-3.7\facebook\libs\android-support-v4.jar
[2014-02-28 10:48:33 - MyAssistant] Length: 621451
[2014-02-28 10:48:33 - MyAssistant] SHA-1: 5896b0a4e377ac4242eb2bc785220c1c4fc052f4
[2014-02-28 10:48:33 - MyAssistant] Path: C:\AndroidWorkspace\MyAssistant\libs\android-support-v4.jar
[2014-02-28 10:48:33 - MyAssistant] Length: 385685
[2014-02-28 10:48:33 - MyAssistant] SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
[2014-02-28 10:48:33 - MyAssistant] Jar mismatch! Fix your dependencies
[2014-02-28 10:48:42 - MyAssistant] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-02-28 10:48:42 - MyAssistant] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-02-28 10:48:42 - MyAssistant] All versions of the libraries must be the same at this time.
[2014-02-28 10:48:42 - MyAssistant] Versions found are:
[2014-02-28 10:48:42 - MyAssistant] Path: C:\Users\Michael\Desktop\מיכאל\Personal Assistant\Jars\facebook-android-sdk-3.7\facebook\libs\android-support-v4.jar
[2014-02-28 10:48:42 - MyAssistant] Length: 621451
[2014-02-28 10:48:42 - MyAssistant] SHA-1: 5896b0a4e377ac4242eb2bc785220c1c4fc052f4
[2014-02-28 10:48:42 - MyAssistant] Path: C:\AndroidWorkspace\MyAssistant\libs\android-support-v4.jar
[2014-02-28 10:48:42 - MyAssistant] Length: 385685
[2014-02-28 10:48:42 - MyAssistant] SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
[2014-02-28 10:48:42 - MyAssistant] Jar mismatch! Fix your dependencies
支持包V4似乎不匹配。我该如何解决这个问题?
答案 0 :(得分:2)
我几天也有同样的问题。
<强>解决方案强>
1)从主项目中删除android support v4.jar。
2)然后右键单击您的项目并转到属性并选择 JavaBuildPath
3)转到库标签,然后点击添加外部广告
4)浏览jar文件并从Facebook库项目中添加facebook-android-sdk-3.6.0 -> facebook -> libs
4)添加它,然后转到库旁边的订单并导出标签,在那里你会看到android support v4 jar,检查它并按下apply和Ok。
就是这样,清理你的项目并尝试运行你的项目。
答案 1 :(得分:0)
确保您拥有android sdk管理器中的更新支持库。罐子的不同版本的不匹配发生了bcoz。
然后将android_support-v4.jar
复制到项目和facebook库项目的libs文件夹中。
可以在以下路径中找到支持库
android-sdk/extras/android/support/v4/android_support-v4.jar
答案 2 :(得分:0)
请将项目中的jar文件复制到facebook sdk库并清理它。您必须为所有库项目和应用程序项目使用相同的jar。因为来自github或任何社区的任何库都将带有旧的andoird-support-v4.jar,所以最好将所有库项目的support-v4.jar替换为应用程序项目的support-v4.jar。
然后,如果你得到任何感叹号,请转到属性 - > javabuildpath-&gt; orderandexport选择所有复选框并删除丢失的...
我希望它会帮助你............