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

GitHub | 1181631922 | 5 months ago
  1. 0

    刷新recyclerview列表数据由不满屏到满屏出现crash

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

    问题

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

    android - RecyclerView crashes when "scrapped or attached views may not be recycled" - Stack Overflow

    dluat.com | 1 year ago
    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

    RecyclerView crashes when "scrapped or attached views may not be recycled"

    Stack Overflow | 2 years ago | StackOverflowMaster
    java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true
  6. 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

  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
    LinearLayout.onLayout
    1. android.view.View.layout(View.java:16630)
    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)
    5 frames