JavaShuo
欄目
標籤
刷新Adapter報java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing
時間 2021-01-08
標籤
android
欄目
Java
简体版
原文
原文鏈接
今天在做EditText文本監控TextWatcher時,刷新Adapter,系統崩潰,報如下異常,再此記錄下修改的方法 如上圖所示, 錯誤翻譯:RecyclerView正在計算佈局或滾動應用程序時,無法調用此方法 報錯原因爲:在一個ViewHolder.onBind()裏面用通過bus發消息去通知刷新列表notifyDataSetChanged(),這個時候剛好列表在滾動,那麼就會報這個錯。 解
>>阅读原文<<
相關文章
1.
解Caused by java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing
2.
Android之提示Cannot call this method while RecyclerView is computing a layout or scrolling
3.
java.lang.IllegalStateException: You cannot call onTextChanged with a non filterable adapter
4.
[AVAssetWriter startWriting] Cannot call method when status is 1
5.
java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'specificationController' method
6.
There is already 'projectApproveController' bean method java.lang.IllegalStateException: Ambiguous
7.
listView adapter 的java.lang.IllegalStateException
8.
Java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
9.
java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
10.
java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'XXX' bean method
更多相關文章...
•
ionic 下拉刷新
-
ionic 教程
•
PHP Closure::call()
-
PHP 7 新特性
•
PHP Ajax 跨域問題最佳解決方案
•
☆基於Java Instrument的Agent實現
相關標籤/搜索
this+call
computing
java.lang.illegalstateexception
adapter
method
刷新
recyclerview
動態刷新
core'&&cannot
Java
Android
PHP 7 新特性
NoSQL教程
Redis教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
吳恩達深度學習--神經網絡的優化(1)
2.
FL Studio鋼琴卷軸之工具菜單的Riff命令
3.
RON
4.
中小企業適合引入OA辦公系統嗎?
5.
我的開源的MVC 的Unity 架構
6.
Ubuntu18 安裝 vscode
7.
MATLAB2018a安裝教程
8.
Vue之v-model原理
9.
【深度學習】深度學習之道:如何選擇深度學習算法架構
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
解Caused by java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing
2.
Android之提示Cannot call this method while RecyclerView is computing a layout or scrolling
3.
java.lang.IllegalStateException: You cannot call onTextChanged with a non filterable adapter
4.
[AVAssetWriter startWriting] Cannot call method when status is 1
5.
java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'specificationController' method
6.
There is already 'projectApproveController' bean method java.lang.IllegalStateException: Ambiguous
7.
listView adapter 的java.lang.IllegalStateException
8.
Java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
9.
java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
10.
java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'XXX' bean method
>>更多相關文章<<