请对我放轻松,因为我对 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 后修复错误。
对此的任何帮助都会很棒,因为我现在一直在挠头,并且在谷歌上搜索它的病人已经用完了。
谢谢