关于Recycleview的Inconsistency detected. Invalid view holder adapter positionViewHolder
来源:互联网 发布:程序员注释 编辑:程序博客网 时间:2024/05/19 17:06
刚刚使用Recycleview到项目,一开始发现偶尔滑动的时候会崩溃,报
java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{43ea2e18 position=3 id=-1, oldPos=-1, pLpos:-1 scrap tmpDetached no parent}
这个错误,然后百度了一下,查看了
http://blog.csdn.net/lovexieyuan520/article/details/50537846
的解决方法,但是依然会发生错误,看此贴评论区,就去
https://code.google.com/p/android/issues/detail?id=158046(需要翻墙)
地址,终于发现了问题所在,由于多线程更新adapter,导致的问题。
在此立贴。
0 0
- 关于Recycleview的Inconsistency detected. Invalid view holder adapter positionViewHolder
- RecyclerView异常:Inconsistency detected. Invalid view holder adapter positionViewHolder
- IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder
- ndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案
- RecyclerView:IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter
- 解决IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter
- java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionVie
- IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter notifyItemRangeRemove
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案
- java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 的解决方案
- IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- Android 解决Recycler View: Inconsistency detected.
- java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position的一种规避方式
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid item position 解决方案
- NPOI 单元格套用公式
- 打包Jar包,混淆Jar包,合并多个Jar包
- 十二上机5
- Spring学习总结(18)——Spring整合Mysql数据库一主多从、多主多从配置
- opengles之3D模型加载(obj模型文件)
- 关于Recycleview的Inconsistency detected. Invalid view holder adapter positionViewHolder
- Unity JSON 序列化
- cocos2dx physics物理引擎碰撞详解
- 对称加密----AES和DES加密、解密
- HDU1561 这应该也是一个很裸的树上背包...
- 解决Listview的Item与按钮或文本框焦点的问题
- Learning_neutron_command
- ReactiveCocoa入门教程——第二部分
- com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource