我在团结引擎中导出包hap遇到了这样一个问题
System.Exception: OpenHarmony build; OpenHarmony SDK path “D:/HarmonyOS SDK/openharmony/9” provided to the build system through the command line argument doesn’t have native/oh-uni-package.json file
可能的解决方案
- 你的SDK路径不正确,不能出现中文路径
- 你的SDK不是OpenHarmony的SDK,要在DevEco Studio里面下载OpenHarmony SDK 9,而不是上面那个HarmonyOS的SDK。(注意下载时要记得勾选native)