W/AGP: Attempt to update UI in non-UI thread, throw Java Exception 1
I/QarthLog: [PatchStore] createDisableExceptionQarthFile
[PatchStore] create disable file for com.mytoutou.cehua uid is 10194
E/AndroidRuntime: FATAL EXCEPTION: PoolThread-2
Process: com.mytoutou.cehua, PID: 19979
java.lang.IllegalStateException: Attempt to update UI in non-UI thread.
at ohos.agp.components.ComponentContainer.nativeAddComponent(Native Method)
at ohos.agp.components.ComponentContainer.addComponent(ComponentContainer.java:286)
at ohos.agp.components.ComponentContainer.addComponent(ComponentContainer.java:215)
at com.mytoutou.cehua.listener.DzLoveListener.dz(DzLoveListener.java:132)
at com.mytoutou.cehua.listener.DzLoveListener.lambda$new$0$DzLoveListener(DzLoveListener.java:111)
at com.mytoutou.cehua.listener.-$$Lambda$DzLoveListener$N0LdtOjDdoP07Xu739mo0v04tQI.run(Unknown Source:2)
at ohos.app.dispatcher.task.Task.run(Task.java:71)
at ohos.app.dispatcher.TaskExecutor.doWorks(TaskExecutor.java:172)
at ohos.app.dispatcher.threading.WorkerThread.run(WorkerThread.java:63)
at java.lang.Thread.run(Thread.java:929)
E/EGL_emulation: eglQuerySurface 313d EGL_BAD_ATTRIBUTE
已经解决,要使用UI线程处理