根本原因是ndk版本问题,android-ndk-r9d-windows-x86版本 cocos compile -p android -m debug --ndk-mode debug 会出现
error: undefined reference to 'std::__stl_throw_length_error(char const*)'
这样的错误重新配置error: undefined reference to 'std::__stl_throw_length_error(char const*)'
ndk版本为android-ndk-r10c

cocos3.4的lua工程在打包为apk后,运行一段时间出现闪退。问题根源在于使用的android-ndk-r9d版本,此版本在执行cocos编译命令时会导致debug模式下出现错误。解决方案是升级到android-ndk-r10c。
2445

被折叠的 条评论
为什么被折叠?



