2013-03-09 50 views
0

我在做Android的Facebook集成。我完成了guide 中給出的所有5個步驟。但是當我做第6步時,即將FacebookSDK添加到我的應用程序中時,我得到了一些錯誤。 我貼這些錯誤,請幫我出.....Facebook在Android中集成顯示錯誤,同時添加庫

`

[2013-03-09 16:20:47 - FbIntegration] Found 2 versions of android-support-v4.jar in the dependency list, 
[2013-03-09 16:20:47 - FbIntegration] but not all the versions are identical (check is based on SHA-1 only at this time). 
[2013-03-09 16:20:47 - FbIntegration] All versions of the libraries must be the same at this time. 
[2013-03-09 16:20:47 - FbIntegration] Versions found are: 
[2013-03-09 16:20:47 - FbIntegration] Path: C:\Users\gtm\facebook-android-sdk-3.0\facebook\libs\android-support-v4.jar 
[2013-03-09 16:20:47 - FbIntegration] Length: 349252 
[2013-03-09 16:20:47 - FbIntegration] SHA-1: 612846c9857077a039b533718f72db3bc041d389 
[2013-03-09 16:20:47 - FbIntegration] Path: C:\ste\FbIntegration\libs\android-support-v4.jar 
[2013-03-09 16:20:47 - FbIntegration] Length: 385685 
[2013-03-09 16:20:47 - FbIntegration] SHA-1: 48c94ae70fa65718b382098237806a5909bb096e 

`

回答

2

複製Android的支持,v4.jar

C:\Users\gtm\facebook-android-sdk-3.0\facebook\libs\android-support-v4.jar 

C:\ste\FbIntegration\libs\android-support-v4.jar 

這正是錯誤所說的。只能有一個版本的android-support-v4.jar依賴關係

+0

絕妙!我有同樣的問題,這解決了完美的:-) – echoashu 2014-09-04 12:44:47