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 | 4 months ago
  1. 1

    效果很赞,但存在一点Bug

    GitHub | 4 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 | 3 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

  5. 0

    Sliding an item left or right (but not deleting it), then scrolling up / down fast causes the program to crash

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

    Tmp detached View recycled before it's removed from RecyclerView causing FATAL EXCEPTION

    GitHub | 2 years ago | LouisCo
    java.lang.IllegalArgumentException: Tmp detached view should be removed from RecyclerView before it can be recycled: ViewHolder{42241e38 position=2 id=222, oldPos=-1, pLpos:-1 tmpDetached no parent}

    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

      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