java.lang.NoClassDefFoundError android.support.v4.content.LocalBroadcastManager


E/AndroidRuntime(30538): FATAL EXCEPTION: main
E/AndroidRuntime(30538): java.lang.NoClassDefFoundError: android.support.v4.content.LocalBroadcastManager
at com.facebook.UiLifecycleHelper.(UiLifecycleHelper.java:72)
E/AndroidRuntime(30538): at com.example.testingrnd.MainActivity.onCreate(MainActivity.java:71)
E/AndroidRuntime(30538): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(30538): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
E/AndroidRuntime(30538): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
E/AndroidRuntime(30538): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime(30538): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
E/AndroidRuntime(30538): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(30538): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime(30538): at android.app.ActivityThread.main(ActivityThread.java:3687)
E/AndroidRuntime(30538): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(30538): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(30538): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
E/AndroidRuntime(30538): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
E/AndroidRuntime(30538): at dalvik.system.NativeStart.main(Native Method)

You get the above error message while integrating facebookSDK because there is a conflict in android-support-v4.jar dependency. To resolve this issue you need to delete android-support-v4.jar from FacebookSDK library lib folder and replace it with the same file that you will find in your project lib file.

Repalce Android Support v4 jar with Project jar
Repalce Android Support v4 jar with Project jar

After doing this make sure that you Clean and Built your project.






      Topics: Pages | 2015 | Tutorials | Questions | Python