【关键字】
编译报错 / ArkTS:ERROR failed to execute
【问题描述】
真机运行调试时编译报错,报错内容如下所示。
> hvigor ERROR: ArkTS:ERROR failed to execute es2abc
ERROR: Failed to emit D:\code\xxx\build\default\intermediates\loader_out\default\ets\modules.abc, error:
If you're using any cache file generated by older version of SDK, please try cleaning the cache files and rebuildGenerateProgram Failed!
【解决方案】
可以尝试将module工程下编译生成的build目录删除,再使用菜单栏 > build > Rebuild Project重新编译试下。