请放轻松对我来说,因为我还是eclispe软件等新手......好吧我有问题是导入facebook sdk。我编写了一个小应用程序,然后重新调整我认为允许用户从它发布一些东西到Facebook会很好。所以我导入了SDK。然后将其添加为我的项目的库,我得到以下错误
[
2013-07-15 09:37:58 - Myapp] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-07-15 09:37:58 - Myapp] All versions of the libraries must be the same at this time.
[2013-07-15 09:37:58 - Myapp] Versions found are:
[2013-07-15 09:37:58 - Myapp] Path: C:\myapp\libs\android-support-v4.jar
[2013-07-15 09:37:58 - Myapp] Length: 484258
[2013-07-15 09:37:58 - Myapp] SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308
[2013-07-15 09:37:58 - Myapp] Path: C:\googledevelopement\facebook-android-sdk-3.0.2\facebook\libs\android-support-v4.jar
[2013-07-15 09:37:58 - Myapp] Length: 349252
[2013-07-15 09:37:58 - Myapp] SHA-1: 612846c9857077a039b533718f72db3bc041d389
[2013-07-15 09:37:58 - Myapp] Jar mismatch! Fix your dependencies
[2013-07-15 09:37:59 - Myapp] Found 2 versions of android-support-v4.jar in the dependency list,
[2013-07-15 09:37:59 - Myapp] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-07-15 09:37:59 - Myapp] All versions of the libraries must be the same at this time.
[2013-07-15 09:37:59 - Myapp] Versions found are:
[2013-07-15 09:37:59 - Myapp] Path: C:\myapp\libs\android-support-v4.jar
[2013-07-15 09:37:59 - Myapp] Length: 484258
[2013-07-15 09:37:59 - Myapp] SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308
[2013-07-15 09:37:59 - Myapp] Path: C:\googledevelopement\facebook-android-sdk-3.0.2\facebook\libs\android-support-v4.jar
[2013-07-15 09:37:59 - Myapp] Length: 349252
[2013-07-15 09:37:59 - Myapp] SHA-1: 612846c9857077a039b533718f72db3bc041d389
[
2013-07-15 09:37:59 - Myapp] Jar mismatch! Fix your dependencies
2013-07-15 09:37:59 - Myapp] Jar mismatch! Fix your dependencies
我已经读过其他线程(只是删除了jar文件)所以我这样做了...然后我在facebook项目中遇到了很多错误(准确地说是108)但是这里有一些:
Description Resource Path Location Type
LocalBroadcastManager cannot be resolved Session.java /FacebookSDK/src/com/facebook line 1215 Java Problem
Fragment cannot be resolved to a type Session.java /FacebookSDK/src/com/facebook line 1843 Java Problem
Loader<SimpleGraphObjectCursor<T>> cannot be resolved to a type GraphObjectPagingLoader.java /FacebookSDK/src/com/facebook/widget line 109 Java Problem
Loader cannot be resolved to a type GraphObjectPagingLoader.java /FacebookSDK/src/com/facebook/widget line 27 Java Problem
LoaderManager cannot be resolved to a type PickerFragment.java /FacebookSDK/src/com/facebook/widget line 813 Java Problem
Loader<SimpleGraphObjectCursor<T>> cannot be resolved to a type GraphObjectPagingLoader.java /FacebookSDK/src/com/facebook/widget line 119 Java Problem
我所希望的是对可靠性问题的解决(这不会导致其他错误)。或者在我从facebook项目中删除android-support-v4.jar后修复错误。
任何有关这方面的帮助都会很棒,因为我现在已经摸不着头脑了,用谷歌搜索它就没有了。
由于
答案 0 :(得分:3)
即使我遇到同样的情况。这就是我所做的:
Facebook sdk有一个v4库。您的应用还将有另一个v4。
现在存在两个相同文件的副本会混淆编译器。这就是我所做的:
从我的应用中删除了v4库。它显示错误,暂时忽略。
现在添加facebook库。
一切都会好起来的..希望对你有帮助。
您也可以关注此answer.