老冷论坛's Archiver
论坛
›
原生UI XML
› 【Easyclick】【原生UI】STACK_TRACE=java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()解决方法
Mr_老冷
发表于 2023-6-13 18:57:43
【Easyclick】【原生UI】STACK_TRACE=java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()解决方法
thread线程里不能直接操作ui元素,需要加上ui.run包起来用
thread.execAsync(function () {
ui.run(0,function () {
//代码
})
})
页:
[1]
查看完整版本:
【Easyclick】【原生UI】STACK_TRACE=java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()解决方法