Facebook的SDK + SlidingMenu SDK =罐不匹配!修正你的依赖你的、不匹配、Facebook、SDK

2023-09-13 01:53:27 作者:全球绝版仅此一款

所以,我已经加入了Facebook的SDK和SlidingMenu SDK到我的Andr​​oid项目,但是我得到那些讨厌的瓶不匹配的错误。

So I have added the Facebook SDK and the SlidingMenu SDK into my Android project, however I am getting those nasty "Jar mismatch" errors.

我已经删除从 Android的支持 - v4.jar 文件我的库文件夹,但错误依然存在。

I have already removed the android-support-v4.jar file from my libs folder, yet the error persists.

在如何解决这一问题的任何想法? (我自己也尝试从文件夹中删除文件,但我得到了'未找到文件错误)

Any ideas on how to fix this? (I have also tried deleting the files from the folders, but I get the 'file not found' errors)

图片: https://m.xsw88.com/allimgs/daicuo/20230913/756.png

推荐答案

删除 Android的支持 - v4.jar 在 SlidingMenu 的库。而拷贝自Facebook的SDK的库的 Android的支持 - v4.jar 文件夹并将其粘贴到您的 SlidingMenu的的库文件夹。

Delete the android-support-v4.jar from the SlidingMenu library. And copy the android-support-v4.jar file from the Facebook SDK's libs folder and paste it in to your SlidingMenu's libs folder.

,然后做上述后刷新SlidingMenu项目最后的清除所有项目的。

And then refresh the SlidingMenu project and finally clean all projects after doing the above.