java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.kenolyatuma.futolocate/com.kenolyatuma.futolocate.MapsActivity }: java.lang.InstantiationException: can't instantiate class com.kenolyatuma.futolocate.MapsActivity; no empty constructor

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.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • google map limiting scrolling errors
    via Stack Overflow by kenoly
    ,
  • Cannot instantiate class in Android App
    via Stack Overflow by hichris123
    ,
    • java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.kenolyatuma.futolocate/com.kenolyatuma.futolocate.MapsActivity }: java.lang.InstantiationException: can't instantiate class com.kenolyatuma.futolocate.MapsActivity; no empty constructor at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2224) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2392) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1266) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5421) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:979) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:795) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.InstantiationException: can't instantiate class com.kenolyatuma.futolocate.MapsActivity; no empty constructor at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1208) at android.app.Instrumentation.newActivity(Instrumentation.java:1073) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2215) ... 11 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Macapon
    Macapon3 times, last one,
    ben.slama.jihed
    ben.slama.jihed4 times, last one,
    Unknown visitor1 times, last one,
    Unknown User
    Unknown User178 times, last one,
    39 more bugmates