使用 RecyclerView 的时候报错

java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{2a7919e position=6 id=-1, oldPos=5, pLpos:5 scrap [attachedScrap] tmpDetached no parent}

找到了一些解决方案:

  1. 捕获该异常:https://stackoverflow.com/questions/31759171/recyclerview-and-java-lang-indexoutofboundsexception-inconsistency-detected-in

  2. 建议:http://blog.csdn.net/zrbcsdn/article/details/50111869

相关文章:

  • 2022-01-11
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案