Facebook集成android支持v4内容localBroadcastManager [英] Facebook integration android support v4 content localBroadcastManager
问题描述
我试图处理我的简单的android应用程序的Facebook集成登录。我遵循本指南 https://developers.facebook .com / docs / get-started / facebook-sdk-for-android / 3.0 / ,一切似乎都很好,但是仍然遇到异常:
java.lang.NoClassDefFoundError:android.support。 v4.content.LocalBroadcastManager
Im trying to deal with a facebook integration login for my simple android application. Im following this guide https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/ and everthing seems to go fine, but am still gettin exception: java.lang.NoClassDefFoundError: android.support.v4.content.LocalBroadcastManager
我知道这个问题有很多类似的问题,像这样 java.lang.ClassNotFoundException在项目中没有改变,但升级eclipse android sdk
表示我必须在其他和导出选项卡中检查java构建路径中的所有复选框,但是我已经完成了它,并且仍然收到错误。
I know there are alot similar questions about this problem like this java.lang.ClassNotFoundException after changing nothing in the project but upgrading eclipse android sdk that says that I must check all the checkboxes in java build path in Other and export tab but Ive done it already and am still getting the error.
推荐答案
我有同样的问题,并在互联网上找到解决方案。我阅读了许多建议,发布在你所链接的那些答案中,没有一个似乎有效。我最终得到它的工作。我的问题是我误解了其他几个帖子。我以为当他们说确保android-support-v4.jar在你的libs文件夹时,他们指的是FacebookSDK项目中的android-support-v4.jar。
I had the same issue and scoured the internet for solutions. I read many of the suggestions posted in answers like the one you linked and none of them seemed to work. I ended up getting it to work. My issue was that I had misunderstood several of the other posts. I thought that when they said "make sure android-support-v4.jar was in your libs folder" they were referring to the android-support-v4.jar in the FacebookSDK project.
一旦我将android-support-v4.jar添加到我的项目中,并遵循与订单和导出相关的其他建议。清理和重建项目后,不再坠毁。希望这可以帮助!祝你好运!
Once I added android-support-v4.jar to my project and followed the other suggestions related to Order and Export. After cleaning and rebuilding the project it no longer crashed. Hope this helps! Good Luck!
这篇关于Facebook集成android支持v4内容localBroadcastManager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!