Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to instantiate fragment - InstantiationException
    primarykey
    data
    text
    <p>I published a app on the play store and i am using ACRA for receiving crash reports. I'm getting a lot of these crash reports listed below, which i have never seen before although i tested the app a lot on a lot of devices.</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.app/com.example.app.MainActivity}: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.example.app.fragments.InfoDetailFragment$1: make sure class name exists, is public, and has an empty constructor that is public at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2355) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2391) at android.app.ActivityThread.access$600(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1335) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:155) at android.app.ActivityThread.main(ActivityThread.java:5520) 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:1029) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796) at dalvik.system.NativeStart.main(Native Method) </code></pre> <p>Its always the fragment "InfoDetailFragment", which like all of my fragments subclasses a BaseFragment.</p> <pre><code>public static InfoDetailFragment createInstance(String title) { InfoDetailFragment frag = new InfoDetailFragment(); Bundle args = new Bundle(); args.putString(ARGS_TITLE, title); frag.setArguments(args); return frag; } public InfoDetailFragment() { super("InfoDetailFragment"); } </code></pre> <p>All my fragments are instantiated exactly the same, but the error only appears on this one. Any ideas or hints? Thanks a lot</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload