E/AndroidRuntime(30538): FATAL EXCEPTION: main
E/AndroidRuntime(30538): java.lang.NoClassDefFoundError:
at com.facebook.UiLifecycleHelper.(
E/AndroidRuntime(30538): at com.example.testingrnd.MainActivity.onCreate(
E/AndroidRuntime(30538): at
E/AndroidRuntime(30538): at
E/AndroidRuntime(30538): at
E/AndroidRuntime(30538): at$1500(
E/AndroidRuntime(30538): at$H.handleMessage(
E/AndroidRuntime(30538): at android.os.Handler.dispatchMessage(
E/AndroidRuntime(30538): at android.os.Looper.loop(
E/AndroidRuntime(30538): at
E/AndroidRuntime(30538): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(30538): at java.lang.reflect.Method.invoke(
E/AndroidRuntime(30538): at$
E/AndroidRuntime(30538): at
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.

Recent Posts:

Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.