java.lang.RuntimeException: Unable to start activity ComponentInfo{TestCrash2.Droid/md5171fa842c235c01f571c9abc53a9d93b.MainActivity}: java.lang.IllegalStateException: Fragment does not have a view

Xamarin Bugzilla | tranb3r | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    App crashes on kill/start, when combining FormsAppCompatActivity / MasterDetailPage / NavigationPage / TabbedPage

    Xamarin Bugzilla | 8 months ago | tranb3r
    java.lang.RuntimeException: Unable to start activity ComponentInfo{TestCrash2.Droid/md5171fa842c235c01f571c9abc53a9d93b.MainActivity}: java.lang.IllegalStateException: Fragment does not have a view
  2. 0

    IllegalStateException with Android Fragments

    Stack Overflow | 3 years ago | Karakuri
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.my.package/com.my.package.activities.MainActivity}: java.lang.IllegalStateException: Fragment already added: ContactFragment{42263030 #0 id=0x7f0a006d}
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    java.lang.IllegalStateException: Fragment already added

    Stack Overflow | 3 years ago | creaity
    java.lang.RuntimeException: Unable to start activity ComponentInfo{de.myexample.demo/de.myexample.demo.ui.SecondActivity}: java.lang.IllegalStateException: Fragment already added: ListFragment{42283f58 #0 id=0x7f060094 de.myexample.demo.ui.ListFragment}
  5. 0

    Keeping Activity when "Don't Keep Activities" is set

    Stack Overflow | 4 years ago | scorpion22
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.exm.imageselect/com.exm.imageselect.HomeActivity}: java.lang.IllegalStateException: No activity

    7 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Fragment does not have a view

      at android.support.v4.app.Fragment$1.onFindViewById()
    2. Android Support v4
      FragmentActivity.onStart
      1. android.support.v4.app.Fragment$1.onFindViewById(Fragment.java:1933)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1057)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
      4. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234)
      5. android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2046)
      6. android.support.v4.app.Fragment.performActivityCreated(Fragment.java:1989)
      7. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1092)
      8. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
      9. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234)
      10. android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2046)
      11. android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:174)
      12. android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:598)
      12 frames
    3. md5b60ffeb829f638581ab2bb9b1a7f4f3f
      FormsAppCompatActivity.onStart
      1. md5b60ffeb829f638581ab2bb9b1a7f4f3f.FormsAppCompatActivity.n_onStart(Native Method)
      2. md5b60ffeb829f638581ab2bb9b1a7f4f3f.FormsAppCompatActivity.onStart(FormsAppCompatActivity.java:120)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1236)
      2. android.app.Activity.performStart(Activity.java:6006)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2321)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2420)
      5. android.app.ActivityThread.access$900(ActivityThread.java:154)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:135)
      9. android.app.ActivityThread.main(ActivityThread.java:5294)
      9 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
      2 frames