BaseRecyclerViewAdapterHelper icon indicating copy to clipboard operation
BaseRecyclerViewAdapterHelper copied to clipboard

BaseRecyclerViewAdapterHelper 使用 RecyclerView1.2.0 会出现java.lang.IllegalArgumentException

Open wangshaolei opened this issue 3 years ago • 1 comments

  1. 当前使用的版本号 3.0.4 使用 RecyclerView1.2.0
  2. 复现操作描述
  3. 使用代码
  4. crash日志
1 java.lang.IllegalArgumentException: Called attach on a child which is not detached: BaseViewHolder
at androidx.recyclerview.widget.RecyclerView$5.attachViewToParent(SourceFile:4)
at androidx.recyclerview.widget.ChildHelper.attachViewToParent(SourceFile:5)
at androidx.recyclerview.widget.RecyclerView$LayoutManager.addViewInt(SourceFile:20)
at androidx.recyclerview.widget.RecyclerView$LayoutManager.addView(SourceFile:2)
at androidx.recyclerview.widget.RecyclerView$LayoutManager.addView(SourceFile:1)
at com.google.android.flexbox.FlexboxLayoutManager.layoutFlexLineMainAxisHorizontal(SourceFile:25)
at com.google.android.flexbox.FlexboxLayoutManager.layoutFlexLine(SourceFile:2)
at com.google.android.flexbox.FlexboxLayoutManager.fill(SourceFile:12)
at com.google.android.flexbox.FlexboxLayoutManager.onLayoutChildren(SourceFile:23)
at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(SourceFile:12)
at androidx.recyclerview.widget.RecyclerView.onMeasure(SourceFile:13)

wangshaolei avatar Jun 11 '21 08:06 wangshaolei

你找到原因了吗?我也遇到这个问题了

jiaxiangdong0103 avatar Nov 13 '23 07:11 jiaxiangdong0103