java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/FacebookActivity;

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via github.io by Unknown author

You need to setup a GlideModule before use Glide.

Solutions on the web

via Stack Overflow by Siawash Kasra
, 2 years ago
via Stack Overflow by siddharth
, 1 year ago
Failed resolution of: Lcom/facebook/FacebookActivity;
via GitHub by aldryss
, 1 year ago
Failed resolution of: Lcom/facebook/FacebookActivity;
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/FacebookActivity;
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at com.facebook.internal.Validate.hasFacebookActivity(Validate.java:192)
at com.facebook.FacebookSdk.sdkInitialize(FacebookSdk.java:198)
at com.facebook.FacebookSdk.sdkInitialize(FacebookSdk.java:174)
at com.mycompname.mygame.MyGameActivityExtension.onMyGameActivityCreate(MyGameActivityExtension.java:36)
at com.mycompname.mygame.MyGameActivity.onCreate(MyGameActivity.java:641)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

Users with the same issue

Once, 4 months ago
21 times, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
6 times, 1 year ago
165 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.