Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/192.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android FBSDK导致Jar不匹配_Android_Android Facebook - Fatal编程技术网

Android FBSDK导致Jar不匹配

Android FBSDK导致Jar不匹配,android,android-facebook,Android,Android Facebook,我将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

我将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不匹配。如何修复此问题?

确保您拥有来自android sdk管理器的更新支持库。jar的不同版本不匹配

然后将
android\u support-v4.jar
复制到项目和facebook库项目的libs文件夹中

可以在以下路径下找到支持库

android-sdk/extras/android/support/v4/android_support-v4.jar

请将jar文件从您的项目复制到facebook sdk库并清理它。您必须对所有库项目和应用程序项目使用相同的jar。由于github或任何社区的任何库都将附带旧的andoird-support-v4.jar,因此最好将所有库项目的support-v4.jar替换为应用程序项目的support-v4.jar

然后,如果您得到任何感叹号,如“请转到属性->javabuildpath->订单和导出”,请选中所有复选框并删除缺少的复选框


我希望它能帮助你………

几天前我也有同样的问题

解决方案

1) 从主项目中删除android support v4.jar

2) 然后右键单击项目并转到属性,然后选择JavaBuildPath

3) 转到库选项卡并单击添加外部JAR

4) 浏览jar文件并从Facebook库项目中添加jar文件,该项目是
Facebook-android-sdk-3.6.0->Facebook->libs

4) 添加它,然后转到订购并导出库旁边的选项卡,在那里您将看到android支持v4 jar,检查它并按apply和Ok

就是这样,清理你的项目并试着运行你的项目