java.lang.IllegalStateException: Fragment does not have a view

Xamarin Bugzilla | cody.beyer | 4 months ago
  1. 0

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

    Xamarin Bugzilla | 4 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 | 3 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:1171)
      2. android.app.Activity.performStart(Activity.java:5241)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2157)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
      5. android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3724)
      6. android.app.ActivityThread.access$900(ActivityThread.java:135)
      7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1202)
      8. android.os.Handler.dispatchMessage(Handler.java:102)
      9. android.os.Looper.loop(Looper.java:136)
      10. android.app.ActivityThread.main(ActivityThread.java:5001)
      10 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame