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

GitHub | CTKnight | 5 months ago
  1. 0

    GitHub comment 82#233845870

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

    RecyclerView crashing app (due to new design library?)

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

    React native exception: The specified child already has a parent.

    Stack Overflow | 3 months ago | Adamski
    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

    CameraView: IllegalStateException resuming on devices with camera disabled

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

    Potential IllegalStateException

    GitHub | 4 years ago | Gryzor
    java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

  1. filpgame 1 times, last 2 months ago
  2. kuldeep 5 times, last 3 months ago
  3. harsha 1 times, last 3 months ago
  4. mrokay97 14 times, last 4 months ago
  5. spe 1 times, last 5 months ago
3 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:4309)
    2. android.view.ViewGroup.addView(ViewGroup.java:4145)
    3. android.view.ViewGroup.addView(ViewGroup.java:4086)
    3 frames
  3. Android v7
    RecyclerView.onTouchEvent
    1. android.support.v7.widget.RecyclerView$5.addView(RecyclerView.java:638)
    2. android.support.v7.widget.ChildHelper.addView(ChildHelper.java:107)
    3. android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:7054)
    4. android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:7012)
    5. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1430)
    6. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)
    7. android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1193)
    8. android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1043)
    9. android.support.v7.widget.RecyclerView.scrollByInternal(RecyclerView.java:1552)
    10. android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2649)
    10 frames
  4. Android Platform
    ViewGroup.dispatchTouchEvent
    1. android.view.View.dispatchTouchEvent(View.java:9301)
    2. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2547)
    3. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2240)
    4. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)
    5. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    6. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)
    7. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    8. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)
    9. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    10. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)
    11. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    12. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)
    13. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    14. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)
    15. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    16. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)
    17. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    18. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)
    19. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    20. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)
    21. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    21 frames
  5. Android
    PhoneWindow.superDispatchTouchEvent
    1. com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2659)
    2. com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1787)
    2 frames
  6. Android Platform
    Activity.dispatchTouchEvent
    1. android.app.Activity.dispatchTouchEvent(Activity.java:2771)
    1 frame
  7. Android v7
    WindowCallbackWrapper.dispatchTouchEvent
    1. android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:63)
    2. android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:63)
    2 frames
  8. Android
    PhoneWindow$DecorView.dispatchTouchEvent
    1. com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2620)
    1 frame
  9. Android Platform
    ViewRootImpl$InputStage.apply
    1. android.view.View.dispatchPointerEvent(View.java:9521)
    2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4238)
    3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4104)
    4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3650)
    5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3703)
    6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3669)
    7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3795)
    8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3677)
    8 frames