java.lang.IllegalStateException: Can't retain fragements that are nested in other fragments

Stack Overflow | Gorets | 3 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    save instance in FragmentTabHost

    Stack Overflow | 3 years ago | Gorets
    java.lang.IllegalStateException: Can't retain fragements that are nested in other fragments
  2. 0

    Can't retain nested fragments

    Stack Overflow | 4 years ago | Andrew
    java.lang.IllegalStateException: Can't retain fragements that are nested in other fragments
  3. 0

    Nested fragments - Can't retain fragements that are nested in other fragments

    Stack Overflow | 1 year ago | berimbolo
    java.lang.IllegalStateException: Can't retain fragements that are nested in other fragments
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cannot be nested within a fragment

    GitHub | 4 years ago | ened
    java.lang.IllegalStateException: Can't retain fragements that are nested in other fragments
  6. 0
    samebug tip
    If you're using nested fragments, you have to use childFragmentManager instead of fragmentManager.

    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

      Can't retain fragements that are nested in other fragments

      at android.support.v4.app.Fragment.setRetainInstance()
    2. Android Support v4
      Fragment.setRetainInstance
      1. android.support.v4.app.Fragment.setRetainInstance(Fragment.java:784)
      1 frame