java.lang.IllegalArgumentException: 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}

GitHub | Yellow5A5 | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 1

    效果很赞,但存在一点Bug

    GitHub | 5 months ago | Yellow5A5
    java.lang.IllegalArgumentException: 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}
  2. 0

    RecyclerView gets crashed [IllegalArgumentException] when use notifyItemChanged from Handler using Runnable

    Stack Overflow | 2 years ago | Amrut Bidri
    java.lang.IllegalArgumentException: Tmp detached view should be removed from RecyclerView before it can be recycled: ViewHolder{41b7bec0 position=6 id=-1, oldPos=-1, pLpos:-1 update changed tmpDetachedundefined adapter position no parent}
  3. 0

    Fatal Exception: java.lang.IllegalArgumentException: Tmp detached view should be removed from RecyclerView before it can be recycled

    GitHub | 4 months ago | MariusBoepple
    java.lang.IllegalArgumentException: Tmp detached view should be removed from RecyclerView before it can be recycled: ViewHolder{6645ba3 position=6 id=21474836480, oldPos=-1, pLpos:-1 tmpDetached no parent}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      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}

      at android.support.v7.widget.RecyclerView$Recycler.recycleViewHolderInternal()
    2. Android v7
      DefaultItemAnimator$5.onAnimationEnd
      1. android.support.v7.widget.RecyclerView$Recycler.recycleViewHolderInternal(RecyclerView.java:5235)
      2. android.support.v7.widget.RecyclerView.removeAnimatingView(RecyclerView.java:1198)
      3. android.support.v7.widget.RecyclerView.access$6400(RecyclerView.java:150)
      4. android.support.v7.widget.RecyclerView$ItemAnimatorRestoreListener.onAnimationFinished(RecyclerView.java:10828)
      5. android.support.v7.widget.RecyclerView$ItemAnimator.dispatchAnimationFinished(RecyclerView.java:11328)
      6. android.support.v7.widget.SimpleItemAnimator.dispatchAddFinished(SimpleItemAnimator.java:289)
      7. android.support.v7.widget.DefaultItemAnimator$5.onAnimationEnd(DefaultItemAnimator.java:242)
      7 frames
    3. Android Support v4
      ViewPropertyAnimatorCompatJB$1.onAnimationEnd
      1. android.support.v4.view.ViewPropertyAnimatorCompatJB$1.onAnimationEnd(ViewPropertyAnimatorCompatJB.java:47)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1114)
      2. android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239)
      3. android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766)
      4. android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801)
      5. android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)
      6. android.view.Choreographer.doCallbacks(Choreographer.java:686)
      7. android.view.Choreographer.doFrame(Choreographer.java:619)
      8. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)
      9. android.os.Handler.handleCallback(Handler.java:739)
      10. android.os.Handler.dispatchMessage(Handler.java:95)
      11. android.os.Looper.loop(Looper.java:148)
      12. android.app.ActivityThread.main(ActivityThread.java:7325)
      12 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames