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.
After doing this make sure that you Clean and Built your project.
More Posts related to Android,
- Increase Android Emulator Timeout time
- Android : Remove ListView Separator/divider programmatically or using xml property
- Error : Invalid key hash.The key hash does not match any stored key hashes
- How to Change Android Toast Position?
- Android Alert Dialog with Checkboxes example
- Android : No Launcher activity found! Error
- Android Development: Spinners with Example
- Failed to sync Gradle project Error:failed to find target android-23
- INSTALL_FAILED_INSUFFICIENT_STORAGE Android Error
- Disable Fading Edges Scroll Effect Android Views
- How to create Toast messages in Android?
- Channel 50 SMSes received every few minutes Android Phones
- Android xml error Attribute is missing the Android namespace prefix [Solution]
- Create Custom Android AlertDialog
- How To Disable Landscape Mode in Android Application
- Android Development - How to switch between two Activities
- incorrect line ending: found carriage return (\r) without corresponding newline (\n)
- Generate Facebook Android SDK keyhash using java code
- Android Error Generating Final Archive - Debug Certificate Expired
- 21 Useful Android Emulator Short-cut Keyboard Keys
- Android RatingBar Example
- 11 Weeks of Android Online Sessions-15-Jun-to-28-Aug-2020
- Download interrupted: Unknown Host dl-ssl.google.com Error Android SDK Manager
- fill_parent vs match_parent vs wrap_content
- Android : Connection with adb was interrupted 0 attempts have been made to reconnect
More Posts:
- [Fix] zsh: command not found: awscli [Mac Terminal] - AWS
- Download Google Chrome setup exe file using PowerShell - Powershell
- New-SPLogFile PowerShell - create new SharePoint log file - SharePoint
- Two Ways to Extract rar (*.rar) files on Mac - MacOS
- Check version of pip package installer for Python - Python
- SharePoint - Use Today's Date Time in list view filter and calculated column - SharePoint
- Notepad++ Save Failed - Please check if this file is opened in another program. - NotepadPlusPlus
- How to fix Microsoft Windows 10 update error 80070020 - Microsoft