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

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

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
, 4 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
, 9 months 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.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 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

Users with the same issue

Once, 4 months ago
8 times, 7 months ago
Once, 7 months ago
12 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.