java.lang.IllegalStateException

Fragment no longer exists for key f0: index 0


Solutions on the web11627

Solution icon of stackoverflow
Fragment no longer exists for key f0: index 0

Solution icon of stackoverflow
Fragment no longer exists for key f0: index 0

Solution icon of stackoverflow
Fragment no longer exists for key f0: index 0

Solution icon of stackoverflow
Fragment no longer exists for key f0: index 1

Solution icon of stackoverflow
Fragment no longer exists for key f0: index 1

Solution icon of github
Fragment no longer exists for key f0: index 1

Solution icon of stackoverflow
Fragement no longer exists for key f0: index 0

Solution icon of stackoverflow
Fragment no longer exists for key android:target_state: index 1

Solution icon of stackoverflow
via Stack Overflow by r7v
, 1 year ago
Fragment no longer exists for key android:target_state: index 2

Solution icon of web
Fragment no longer exists for key android:target_state: index 8

Stack trace

  • java.lang.IllegalStateException: Fragment no longer exists for key f0: index 0 at android.support.v4.app.FragmentManagerImpl.getFragment(FragmentManager.java:692) at android.support.v4.app.FragmentStatePagerAdapter.restoreState(FragmentStatePagerAdapter.java:215) at android.support.v4.view.ViewPager.onRestoreInstanceState(ViewPager.java:1453) at android.view.View.dispatchRestoreInstanceState(View.java:15637) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3268) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3274) at android.view.View.restoreHierarchyState(View.java:15615) at android.support.v4.app.Fragment.restoreViewState(Fragment.java:477) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1135) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290) at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:801) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1677) at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:536) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6077) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

Write tip

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

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 more bugmates