Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9121971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:58:58+00:00 2026-06-17T05:58:58+00:00

Since I upgraded my App to use support lib rev. 11 and compiled against

  • 0

Since I upgraded my App to use support lib rev. 11 and compiled against SDK 4.2 I receive the following error

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)

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:

ft.remove(oldFrag).add(newFrag).addToBackStack(null).commit()

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 exclusively 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.

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:58:59+00:00Added an answer on June 17, 2026 at 5:58 am

    I am trying to fix the issue using a hint I found here

    So I added executePendingTransactions() to immediately execute the transaction:

    ft.remove(oldFrag).add(newFrag).addToBackStack(null).commit()
    getFragmentManager().executePendingTransactions();
    

    This should ensure that the backstack is always in a clean state I hope and doesn’t have any negative drawbacks I can think of.

    Update
    Although it does work on regular phones, the issue remains on some generic devices that do not have a known Android Version number, like 4.0.1 or similar, but instead report some Date like ‘Thu Mar 02 2006 00:00:00 GMT+0100 (MEZ) ‘ as Android Version Number, e.g: samsung – espressowifixx – GT-P3110 reports the given date as android version and yields the fragment added exception… Still annoying. Users don’t care about this stuff, so it is always the already deficitary developer who is blamed.
    No problem for billion dollar companies of course, but single developers, just do something more useful with your time than write apps 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since I upgraded my iPhone to 5.1 I have been unable to use it
We have a problem in our swing based application since we've upgraded our java
I've upgraded the SDK tools to revision 20 (from 18) and since the upgrade,
I just upgraded to iPhone SDK 3.2 Beta 4. Since doing so, I have
I recently upgraded to PHP 5.3 and since then I get (sporadic) error messages
I upgraded my app on Heroku to use Flask 0.9 and the new Gevent
Ever since I upgraded to Delphi 2009, I am having terrible experience with TFrame
since today im facing a strange problem. When i start my app in my
Ever since my Asus Transformer tablet was upgraded to Jelly Bean, I find that
I've just upgraded an old .NET 1.1 Winforms app that uses CSLA to .NET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.