问题:
SDK路径设置正确的前提下:
导出时却显示SDK有如下图的问题:
显示System.Exception: OpenHarmony build; OpenHarmony SDK path "C:/Users/12240/AppData/Local/OpenHarmony/Sdk/10" provided to the build system through the command line argument doesn't have native/oh-uni-package.json file。
结果一看OpenHarmony/Sdk/10目录下还真没有native/oh-uni-package.json file。
解决方法:
在DevEco Studio中将缺失的native补齐即可。