记录:

报错:Only the original thread that created a view hierarchy can touch its views.

Only the original thread that created a view hierarchy can touch its views.


分析:更新UI 线程不安全。不在主线上

原因:触发消息初始化来源于第三方框架的回调,为子线程回调。

解决方案:在第三方回调处出使用handle来转发更新UI消息。

相关文章:

  • 2021-11-09
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
猜你喜欢
  • 2022-01-09
  • 2021-07-12
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案