简体   繁体   English

Facebook SDK + SlidingMenu SDK = Jar不匹配! 修复您的依赖

[英]Facebook SDK + SlidingMenu SDK = Jar mismatch! Fix your dependencies

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项目中添加了Facebook SDK和SlidingMenu SDK,但是我遇到了那些讨厌的“ Jar不匹配”错误。

I have already removed the android-support-v4.jar file from my libs folder, yet the error persists. 我已经从我的libs文件夹中删除了android-support-v4.jar文件,但错误仍然存​​在。

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) (我也尝试过从文件夹中删除文件,但出现“找不到文件”错误)

Image: http://i.stack.imgur.com/9JOvg.png 图片: http : //i.stack.imgur.com/9JOvg.png

Delete the android-support-v4.jar from the SlidingMenu library. SlidingMenu库中删除android-support-v4.jar 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. 然后从Facebook SDK的libs文件夹复制android-support-v4.jar文件,并将其粘贴到SlidingMenu的 libs文件夹中。

And then refresh the SlidingMenu project and finally clean all projects after doing the above. 然后执行上述操作,刷新SlidingMenu项目,并最终清理所有项目

从两个库项目中删除支持库,然后将其重新添加到您的项目中。

Try using the remove the android-support-v4.jar file from the libs folder from your project. 尝试使用从项目的libs文件夹中删除android-support-v4.jar文件。

Good Luck. 祝好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM