java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true

GitHub | wuzhaohui026 | 3 months ago
  1. 0

    问题

    GitHub | 3 months ago | wuzhaohui026
    java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true
  2. 0

    Issue 82199 - android - RecyclerView - IllegalArgumentException - Called attach on a child which is not detached - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 6 months ago
    java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{41ce22c0 position=4 id=-1, oldPos=-1, pLpos:-1 no parent}
  3. 0

    RecyclerView throwing IllegalArgumentException when EditText opened

    Stack Overflow | 1 year ago | Graeme
    java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    addData使用问题

    GitHub | 3 months ago | yuruxuan
    java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{7a49b06 position=0 id=-1, oldPos=-1, pLpos:-1}
  6. 0

    Crash when loadMore

    GitHub | 7 months ago | lgxDesign
    java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{36ea4f63 position=7 id=-1, oldPos=-1, pLpos:-1 not recyclable(1)}

  1. tone5992 2 times, last 7 months ago
6 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.IllegalArgumentException

    Scrapped or attached views may not be recycled. isScrap:false isAttached:true

    at android.support.v7.widget.RecyclerView$Recycler.recycleViewHolderInternal()
  2. Android v7
    RecyclerView.onLayout
    1. android.support.v7.widget.RecyclerView$Recycler.recycleViewHolderInternal(RecyclerView.java:5177)
    2. android.support.v7.widget.RecyclerView$Recycler.quickRecycleScrapView(RecyclerView.java:5248)
    3. android.support.v7.widget.RecyclerView$LayoutManager.removeAndRecycleScrapInt(RecyclerView.java:7678)
    4. android.support.v7.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:3333)
    5. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3080)
    6. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3518)
    6 frames
  3. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:15718)
    2. android.view.ViewGroup.layout(ViewGroup.java:5039)
    2 frames
  4. Android Support v4
    SwipeRefreshLayout.onLayout
    1. android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:598)
    1 frame
  5. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:15718)
    2. android.view.ViewGroup.layout(ViewGroup.java:5039)
    3. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
    4. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
    5. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
    6. android.view.View.layout(View.java:15718)
    7. android.view.ViewGroup.layout(ViewGroup.java:5039)
    7 frames
  6. Android Support v4
    ViewPager.onLayout
    1. android.support.v4.view.ViewPager.onLayout(ViewPager.java:1761)
    1 frame
  7. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:15718)
    2. android.view.ViewGroup.layout(ViewGroup.java:5039)
    3. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
    4. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
    5. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
    6. android.view.View.layout(View.java:15718)
    7. android.view.ViewGroup.layout(ViewGroup.java:5039)
    7 frames
  8. Android Support v4
    ViewPager.onLayout
    1. android.support.v4.view.ViewPager.onLayout(ViewPager.java:1761)
    1 frame
  9. Android Platform
    Choreographer$FrameDisplayEventReceiver.run
    1. android.view.View.layout(View.java:15718)
    2. android.view.ViewGroup.layout(ViewGroup.java:5039)
    3. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1077)
    4. android.view.View.layout(View.java:15718)
    5. android.view.ViewGroup.layout(ViewGroup.java:5039)
    6. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
    7. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
    8. android.view.View.layout(View.java:15718)
    9. android.view.ViewGroup.layout(ViewGroup.java:5039)
    10. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
    11. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
    12. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
    13. android.view.View.layout(View.java:15718)
    14. android.view.ViewGroup.layout(ViewGroup.java:5039)
    15. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
    16. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
    17. android.view.View.layout(View.java:15718)
    18. android.view.ViewGroup.layout(ViewGroup.java:5039)
    19. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
    20. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
    21. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
    22. android.view.View.layout(View.java:15718)
    23. android.view.ViewGroup.layout(ViewGroup.java:5039)
    24. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
    25. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
    26. android.view.View.layout(View.java:15718)
    27. android.view.ViewGroup.layout(ViewGroup.java:5039)
    28. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2129)
    29. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1886)
    30. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1103)
    31. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5944)
    32. android.view.Choreographer$CallbackRecord.run(Choreographer.java:788)
    33. android.view.Choreographer.doCallbacks(Choreographer.java:601)
    34. android.view.Choreographer.doFrame(Choreographer.java:571)
    35. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:774)
    35 frames