java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{43142ad8 position=0 id=-1, oldPos=-1, pLpos:-1 not recyclable(1)}

GitHub | doubleZuo | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    删除第一个item报错,删除其他item没问题

    GitHub | 10 months ago | doubleZuo
    java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{43142ad8 position=0 id=-1, oldPos=-1, pLpos:-1 not recyclable(1)}

    2 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Called attach on a child which is not detached: ViewHolder{43142ad8 position=0 id=-1, oldPos=-1, pLpos:-1 not recyclable(1)}

      at android.support.v7.widget.RecyclerView$5.attachViewToParent()
    2. Android v7
      RecyclerView.dispatchLayout
      1. android.support.v7.widget.RecyclerView$5.attachViewToParent(RecyclerView.java:681)
      2. android.support.v7.widget.ChildHelper.attachViewToParent(ChildHelper.java:239)
      3. android.support.v7.widget.RecyclerView.addAnimatingView(RecyclerView.java:1134)
      4. android.support.v7.widget.RecyclerView.animateDisappearance(RecyclerView.java:3485)
      5. android.support.v7.widget.RecyclerView.access$700(RecyclerView.java:151)
      6. android.support.v7.widget.RecyclerView$4.processDisappeared(RecyclerView.java:445)
      7. android.support.v7.widget.ViewInfoStore.process(ViewInfoStore.java:246)
      8. android.support.v7.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:3330)
      9. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3080)
      9 frames