java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

eoeandroid.com | 5 months ago
  1. 0

    求大神帮忙 The specified child already has a parent. You must call remo...-Android开发问答-eoe 移动开发者论坛 - Powered by Discuz!

    eoeandroid.com | 5 months ago
    java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
  2. 0

    ViewPager with a ListView fragment - The specified child already has a parent

    Stack Overflow | 3 years ago | marchese29
    java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
  3. 0

    "The specified child already has a parent" error using FragmentStatePagerAdapater

    Stack Overflow | 3 years ago | Papajohn000
    java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IllegalStateException - removeView() in ViewPager

    Stack Overflow | 4 years ago | Andres
    java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
  6. 0

    Android ViewPager with Fragments getting Error

    Stack Overflow | 3 years ago | Wasim Ahmed
    java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

  1. brunosatriani 1 times, last 6 months ago
  2. Indri Yunita 6 times, last 1 week ago
  3. filpgame 1 times, last 2 months ago
  4. kuldeep 5 times, last 3 months ago
  5. harsha 1 times, last 4 months ago
4 more registered users
11 unregistered visitors
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

    The specified child already has a parent. You must call removeView() on the child's parent first.

    at android.view.ViewGroup.addViewInner()
  2. Android Platform
    ViewGroup.addView
    1. android.view.ViewGroup.addViewInner(ViewGroup.java:3506)
    2. android.view.ViewGroup.addView(ViewGroup.java:3377)
    3. android.view.ViewGroup.addView(ViewGroup.java:3322)
    4. android.view.ViewGroup.addView(ViewGroup.java:3298)
    4 frames
  3. Android Support v4
    ViewPager.onMeasure
    1. android.support.v4.app.NoSaveStateFrameLayout.wrap(NoSaveStateFrameLayout.java:40)
    2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:931)
    3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
    4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
    5. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1460)
    6. android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:472)
    7. android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:141)
    8. android.support.v4.view.ViewPager.populate(ViewPager.java:1068)
    9. android.support.v4.view.ViewPager.populate(ViewPager.java:914)
    10. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1436)
    10 frames
  4. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:15848)
    2. android.widget.LinearLayout.measureVertical(LinearLayout.java:847)
    3. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    4. android.view.View.measure(View.java:15848)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5008)
    6. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    7. android.view.View.measure(View.java:15848)
    8. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5008)
    9. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
    10. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
    11. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    12. android.view.View.measure(View.java:15848)
    13. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5008)
    14. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    14 frames
  5. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2189)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:15848)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1905)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1104)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1284)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1004)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5481)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:562)
    9. android.view.Choreographer.doFrame(Choreographer.java:532)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
    11. android.os.Handler.handleCallback(Handler.java:730)
    12. android.os.Handler.dispatchMessage(Handler.java:92)
    13. android.os.Looper.loop(Looper.java:137)
    14. android.app.ActivityThread.main(ActivityThread.java:5103)
    14 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:525)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    2 frames
  9. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame