Facebook integration android support v4 content localBroadcastManager

故事扮演 提交于 2019-12-11 04:47:22

问题


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

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.


回答1:


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.

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!




回答2:


I also faced the same problem and solved it. I copied and pasted myproject's android-support-v4.jar into Facebook SDK's lib folder. That makes it work.



来源:https://stackoverflow.com/questions/17693651/facebook-integration-android-support-v4-content-localbroadcastmanager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!