Unity 打包Android 提示XX Can only be called from the main thread

调用了高德地图SDK,项目本身没有开启多线程。

出现问题的地方在

Unity 打包Android 提示XX Can only be called from the main thread

一个写在引用项目中的事件的回调。

控制变量法,最后找出原因:

Unity 打包Android 提示XX Can only be called from the main thread

development Build 勾勾去掉。

具体原因查了关于 development Build 相关文档,没有提及线程方面。