java.lang.RuntimeException: Unable to start activity ComponentInfo{com.microsoft.pdfviewertestapplication/com.microsoft.pdfviewertestapplication.MainActivity}: java.lang.IllegalStateException: DialogFragment can not be attached to a container view

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

,

Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by newszer
, 10 months ago
Unable to start activity ComponentInfo{com.microsoft.pdfviewertestapplication/com.microsoft.pdfviewertestapplication.MainActivity}: java.lang.IllegalStateException: DialogFragment can not be attached to a container view
via Stack Overflow by newszer
, 9 months ago
Unable to start activity ComponentInfo{com.microsoft.pdfviewertestapplication/com.microsoft.pdfviewertestapplication.MainActivity}: java.lang.IllegalStateException: DialogFragment can not be attached to a container view
via GitHub by hyb1996-guest
, 6 months ago
Unable to start activity ComponentInfo{com.stardust.scriptdroid/com.stardust.scriptdroid.ui.edit.EditActivity}: java.lang.IllegalStateException: Derived class did not call super.onRestoreInstanceState()
via GitHub by hyb1996-guest
, 6 months ago
Unable to start activity ComponentInfo{com.stardust.scriptdroid/com.stardust.scriptdroid.ui.edit.EditActivity}: java.lang.IllegalStateException: Derived class did not call super.onRestoreInstanceState()
via Stack Overflow by Elias
, 5 months ago
Unable to start activity ComponentInfo{com.eliburgi.foodallergydiary/com.eliburgi.foodallergydiary.ui.home.HomeActivity}: java.lang.IllegalArgumentException: 2749 is not a valid index!
via GitHub by ericbn
, 1 year ago
Unable to start activity ComponentInfo{com.android.email/com.android.email2.ui.MailActivityEmail}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.microsoft.pdfviewertestapplication/com.microsoft.pdfviewertestapplication.MainActivity}: java.lang.IllegalStateException: DialogFragment can not be attached to a container view
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)

Users with the same issue

Once, 1 month ago
33 times, 2 months ago
8 times, 2 months ago
468 times, 3 months ago
65 times, 5 months ago

Write tip

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