Skip to content

Instantly share code, notes, and snippets.

@oshamahue
Created December 1, 2016 12:55
Show Gist options
  • Save oshamahue/cb250158763d17a4d4104c9e308063d0 to your computer and use it in GitHub Desktop.
Save oshamahue/cb250158763d17a4d4104c9e308063d0 to your computer and use it in GitHub Desktop.
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
at android.view.ViewGroup.addViewInner(ViewGroup.java:4654)
at android.view.ViewGroup.addView(ViewGroup.java:4490)
at android.view.ViewGroup.addView(ViewGroup.java:4431)
at android.view.ViewGroup.addView(ViewGroup.java:4404)
at android.support.v4.app.FragmentManagerImpl.moveToState(SourceFile:1129)
at android.support.v4.app.FragmentManagerImpl.moveToState(SourceFile:1295)
at android.support.v4.app.BackStackRecord.run(SourceFile:801)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(SourceFile:1682)
at android.support.v4.app.FragmentManagerImpl$1.run(SourceFile:541)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment