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.
[最佳實踐]瞭解 Eolinker 如何助力遠程辦公
2.
katalon studio 安裝教程
3.
精通hibernate(harness hibernate oreilly)中的一個」錯誤「
4.
ECharts立體圓柱型
5.
零拷貝總結
6.
6 傳輸層
7.
Github協作圖想
8.
Cannot load 32-bit SWT libraries on 64-bit JVM
9.
IntelliJ IDEA 找其歷史版本
10.
Unity3D(二)遊戲對象及組件
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<