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