VirtualLayout:Cannot change whether this adapter has stable IDs while the adapter has registered obs
程序员文章站
2022-06-23 15:14:28
...
报错环境:
MVVM,自己封装的recyclerView的Adapter出错
.IllegalStateException: Cannot change whether this adapter has stable IDs while the adapter has registered observers.
解决方式:
本人的adapter是自己封装的,不同的列表使用不同的adapter适配器。
具体挺复杂的,项目用的是MVVM,封装度有点高。同意当前使用列表的adapter便解决了这个问题。
其他待得空补充,赶狗日的项目……
上一篇: 【外出旅游相关要素】外出旅游要注意哪些