android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. Expected: main Calling: DefaultDispatcher-worker-8
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:11194)
at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:2503)
at android.view.View.requestLayout(View.java:28165)
at android.view.View.requestLayout(View.java:28165)
at android.view.View.requestLayout(View.java:28165)
at android.view.View.requestLayout(View.java:28165)
at android.view.View.requestLayout(View.java:28165)
at android.view.View.requestLayout(View.java:28165)
at android.view.View.requestLayout(View.java:28165)
at android.view.View.requestLayout(View.java:28165)
at android.view.View.requestLayout(View.java:28165)
at android.view.View.requestLayout(View.java:28165)
at android.view.View.requestLayout(View.java:28165)
at androidx.constraintlayout.widget.ConstraintLayout.requestLayout(Unknown Source:3)
at android.view.View.requestLayout(View.java:28165)
at android.view.View.requestLayout(View.java:28165)
at androidx.recyclerview.widget.RecyclerView.requestLayout(Unknown Source:8)
at androidx.recyclerview.widget.RecyclerView$y.onChanged(Unknown Source:28)
at androidx.recyclerview.widget.RecyclerView$i.b(Unknown Source:18)
at androidx.recyclerview.widget.RecyclerView$h.notifyDataSetChanged(Unknown Source:2)
at com.arcblock.sphere.mvp.ui.adapter.ChatHistoryAdapter.setCurrentSessionId(Unknown Source:7)
at com.arcblock.sphere.mvp.ui.fragment.ArcSphereAgentNativeFragment.addConversation(Unknown Source:69)
at com.arcblock.sphere.mvp.ui.fragment.ArcSphereAgentNativeFragment.access$addConversation(Unknown Source:0)
at com.arcblock.sphere.mvp.ui.fragment.ArcSphereAgentNativeFragment$deleteConversation$1.invokeSuspend(Unknown Source:52)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:11)
at kotlinx.coroutines.DispatchedTask.run(Unknown Source:128)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(Unknown Source:3)
at kotlinx.coroutines.scheduling.TaskImpl.run(Unknown Source:2)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(Unknown Source:0)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(Unknown Source:14)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(Unknown Source:28)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(Unknown Source:0)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@d489d38, Dispatchers.IO]
1 条回复
新版本已修复此问题