Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    This happens when you have android:animateLayoutChanges set to true in your XML file and you call notifyDataSetChanged(). To fix it, you have to set android:animateLayoutChanges to false.

  2. ,

    In your xml just avoid using android:animateLayoutChanges with RecyclerViews.and also if you have set android:focusableInTouchMode="true" in your RecycleView you have to set false.

Solutions on the web

via GitHub by Nghicv
, 1 year ago
Scrapped or attached views may not be recycled. isScrap:false isAttached:true
via GitHub by u2u4u
, 1 year ago
Scrapped or attached views may not be recycled. isScrap:false isAttached:true
via Stack Overflow by akhil batlawala
, 2 years ago
Scrapped or attached views may not be recycled. isScrap:false isAttached:true
via GitHub by adrianaisemberg
, 1 year ago
**Scrapped or attached views may not be recycled. isScrap:false isAttached:true**
via Stack Overflow by Honeywell
, 3 weeks ago
Scrapped or attached views may not be recycled. isScrap:false isAttached:true java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true
via GitHub by qaz349293703
, 7 months ago
Scrapped or attached views may not be recycled. isScrap:false isAttached:true
java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true	at android.support.v7.widget.RecyclerView$Recycler.recycleViewHolderInternal(RecyclerView.java:3586)	at android.support.v7.widget.RecyclerView$Recycler.recycleView(RecyclerView.java:3535)	at com.tonicartos.superslim.LayoutState.recycleCache(LayoutState.java:52)	at com.tonicartos.superslim.LayoutManager.scrollVerticallyBy(LayoutManager.java:366)	at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:2797)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)	at android.view.Choreographer.doCallbacks(Choreographer.java:670)	at android.view.Choreographer.doFrame(Choreographer.java:603)	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)	at android.os.Handler.handleCallback(Handler.java:739)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:148)	at android.app.ActivityThread.main(ActivityThread.java:5417)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)