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 Stack Overflow by Ivan Samsonov
, 1 year ago
Scrapped or attached views may not be recycled. isScrap:false isAttached:true
via GitHub by renyedi
, 1 year ago
Scrapped or attached views may not be recycled. isScrap:false isAttached:true
via GitHub by Yellow5A5
, 1 year ago
Tmp detached view should be removed from RecyclerView before it can be recycled: ViewHolder{face30b position=63 id=-1, oldPos=-1, pLpos:-1 tmpDetached no parent}
via GitHub by elsonsolano
, 1 year ago
Tmp detached view should be removed from RecyclerView before it can be recycled: ViewHolder{f0f213a position=5 id=-1, oldPos=-1, pLpos:-1 tmpDetached no parent}
via GitHub by HashEngineering
, 7 months ago
Tmp detached view should be removed from RecyclerView before it can be recycled: ViewHolder{f08251d position=0 id=66470, oldPos=-1, pLpos:-1 invalid update tmpDetached undefined adapter position no parent}
via Stack Overflow by ESX
, 1 year ago
Tmp detached view should be removed from RecyclerView before it can be recycled: ViewHolder{2414800 position=0 id=-1, oldPos=-1, pLpos:-1 update tmpDetached no parent}
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:4860)	at android.support.v7.widget.RecyclerView.removeAnimatingView(RecyclerView.java:1102)	at android.support.v7.widget.RecyclerView.access$6400(RecyclerView.java:147)	at android.support.v7.widget.RecyclerView$ItemAnimatorRestoreListener.onAnimationFinished(RecyclerView.java:10260)	at android.support.v7.widget.RecyclerView$ItemAnimator.dispatchAnimationFinished(RecyclerView.java:10760)	at android.support.v7.widget.SimpleItemAnimator.dispatchChangeFinished(SimpleItemAnimator.java:304)	at android.support.v7.widget.DefaultItemAnimator$7.onAnimationEnd(DefaultItemAnimator.java:362)	at android.support.v4.view.ViewPropertyAnimatorCompatJB$1.onAnimationEnd(ViewPropertyAnimatorCompatJB.java:47)	at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1114)	at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239)	at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766)	at android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801)	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)