Note that there are some explanatory texts on larger screens.

plurals
  1. POFragment already added. Support lib
    primarykey
    data
    text
    <p>Since I upgraded my App to use <strong>support lib rev. 11</strong> and compiled against <strong>SDK 4.2</strong> I receive the following error</p> <pre><code>java.lang.IllegalStateException: Fragment already added: i{4079e598 #2 id=0x1020002 i} at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1159) at android.support.v4.app.BackStackRecord.popFromBackStack(BackStackRecord.java:729) at android.support.v4.app.FragmentManagerImpl.popBackStackState(FragmentManager.java:1493) at android.support.v4.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:477) at android.support.v4.app.FragmentActivity.onBackPressed(FragmentActivity.java:174) </code></pre> <p>I have read about similar problems on stackoverflow. Some of them suggest to avoid the replace method, which I am not using. The transaction that causes the crash on rollback looks like this:</p> <pre><code>ft.remove(oldFrag).add(newFrag).addToBackStack(null).commit() </code></pre> <p>Other comments say this may occur if you are using fragment transitions that can't finish quick enough before the user presses back again. Since I do use transition animations on the given fragments, this might be the cause. However, removing the transition is not a choice and since this <strong>exclusively</strong> occurs on phones running 2.3.x and the bug was introduced by upgrading to lib 11 and sdk 4.2 I hope google will fix it with the next release.</p> <p>Has anyone similar problems, information about whether this is planned to be fixed in 4.2.1 or support r12, or suggestions what I can do to circumvent the error?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload