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

  1. ,
    Expert tip

    This happens when you try to instantiate a class that can't be instantiated, either because the class object is abstract, an interface, an array class, a primitive type, void, or because the class has no nullary constructor.

Solutions on the web

via GitHub by wenmingvs
, 1 year ago
can't instantiate class com.wenming.weiswift.ui.login.activity.MainActivity$6; no empty constructor
via GitHub by wenmingvs
, 1 year ago
can't instantiate class com.wenming.weiswift.ui.login.activity.MainActivity$6; no empty constructor
via GitHub by wenmingvs
, 1 year ago
can't instantiate class com.wenming.weiswift.ui.login.activity.MainActivity$6; no empty constructor
via GitHub by fofri
, 2 years ago
can't instantiate class it.neokree.example.MainActivity$FragmentIndex; no empty constructor
via Stack Overflow by Ben Reddicliffe
, 2 years ago
can't instantiate class com.reddicliffe.usefultools.Multitouch; no empty constructor
via Stack Overflow by Adaichi
, 2 years ago
can't instantiate class com.example.examplebase.Ebase; no empty constructor
java.lang.InstantiationException: can't instantiate class com.wenming.weiswift.ui.login.activity.MainActivity$6; no empty constructor	at java.lang.Class.newInstanceImpl(Native Method)	at java.lang.Class.newInstance(Class.java:1319)	at android.support.v4.app.Fragment.instantiate(Fragment.java:420)	at android.support.v4.app.FragmentState.instantiate(Fragment.java:102)	at android.support.v4.app.FragmentManagerImpl.restoreAllState(FragmentManager.java:1952)	at android.support.v4.app.FragmentController.restoreAllState(FragmentController.java:144)	at android.support.v4.app.FragmentActivity.onCreate(FragmentActivity.java:307)	at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:84)	at com.wenming.weiswift.ui.login.activity.MainActivity.onCreate(MainActivity.java:110)	at android.app.Activity.performCreate(Activity.java:5206)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)	at com.qihoo360.mobilesafe.loader.c.callActivityOnCreate(SourceFile:98)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2064)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2125)	at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3553)	at android.app.ActivityThread.access$700(ActivityThread.java:140)	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1233)	at android.os.Handler.dispatchMessage(Handler.java:99)	at android.os.Looper.loop(Looper.java:137)	at android.app.ActivityThread.main(ActivityThread.java:4898)	at java.lang.reflect.Method.invokeNative(Native Method)	at java.lang.reflect.Method.invoke(Method.java:511)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)	at dalvik.system.NativeStart.main(Native Method)