2013-03-09 47 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