美文网首页
鸿蒙开发(HarmonyOS Next)版本过低报错

鸿蒙开发(HarmonyOS Next)版本过低报错

作者: Leoeoo | 来源:发表于2025-09-01 18:34 被阅读0次

ERROR: 10311009
ERROR: Error Message: Error: The input abc file 'xxx/modules.abc' owns a higher api version or a higher sdkReleaseType compared to current compilation process. [xxx/modules.abc]

编译的SDK放到X项目集成报错版本过低,但是SDK编译时确实在项目根目录的build-profile.json5指定了:"compatibleSdkVersion": "5.0.0(12)"
可能原因是:
需要在X项目的根目录build-profile.json5中添加:"compatibleSdkVersionStage": "release",
即X项目的配置需要与SDK的配置想匹配。
SDK配置:

image.png
X项目配置:
image.png

相关文章

网友评论

      本文标题:鸿蒙开发(HarmonyOS Next)版本过低报错

      本文链接:https://www.haomeiwen.com/subject/ocdvajtx.html