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

Stack Overflow | bluemunch | 5 months ago
  1. 0

    Facebook Native Ads and RecyclerAdapter - The specified child already has a parent

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

    ViewPager error when using fragments, "The specified child already has a parent"

    Stack Overflow | 10 months ago | Helios
    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 Exception in SwipeRefreshLayout

    Stack Overflow | 6 months ago | Axel
    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

    GitHub comment 38#260621008

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

    GitHub comment 38#260621752

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

  1. Indri Yunita 6 times, last 1 week ago
  2. filpgame 1 times, last 2 months ago
  3. kuldeep 5 times, last 3 months ago
  4. harsha 1 times, last 4 months ago
  5. mrokay97 14 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:4309)
    2. android.view.ViewGroup.addView(ViewGroup.java:4145)
    3. android.view.ViewGroup.addView(ViewGroup.java:4086)
    4. android.view.ViewGroup.addView(ViewGroup.java:4059)
    4 frames
  3. com.elgami.feed
    FeedRecyclerAdapter.onCreateViewHolder
    1. com.elgami.feed.FeedRecyclerAdapter$AdditionalHolder.<init>(FeedRecyclerAdapter.java:97)
    2. com.elgami.feed.FeedRecyclerAdapter.onCreateViewHolder(FeedRecyclerAdapter.java:70)
    2 frames
  4. Android v7
    RecyclerView.onLayout
    1. android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:5779)
    2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5003)
    3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4913)
    4. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2029)
    5. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1414)
    6. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)
    7. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:578)
    8. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3260)
    9. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3069)
    10. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3518)
    10 frames
  5. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    2 frames
  6. Android Support v4
    SwipeRefreshLayout.onLayout
    1. android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:598)
    1 frame
  7. Android Platform
    FrameLayout.onLayout
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
    4. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
    5. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
    6. android.view.View.layout(View.java:16636)
    7. android.view.ViewGroup.layout(ViewGroup.java:5437)
    8. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)
    9. android.view.View.layout(View.java:16636)
    10. android.view.ViewGroup.layout(ViewGroup.java:5437)
    11. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    12. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    13. android.view.View.layout(View.java:16636)
    14. android.view.ViewGroup.layout(ViewGroup.java:5437)
    15. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
    16. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
    17. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
    18. android.view.View.layout(View.java:16636)
    19. android.view.ViewGroup.layout(ViewGroup.java:5437)
    20. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    21. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    22. android.view.View.layout(View.java:16636)
    23. android.view.ViewGroup.layout(ViewGroup.java:5437)
    24. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
    25. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
    26. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
    27. android.view.View.layout(View.java:16636)
    28. android.view.ViewGroup.layout(ViewGroup.java:5437)
    29. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    30. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    30 frames
  8. Android
    PhoneWindow$DecorView.onLayout
    1. com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2678)
    1 frame
  9. Android Platform
    Choreographer$CallbackRecord.run
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2171)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1931)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    7 frames