flutter build hap 失败(mac intel i5)

build-profile.json5 
“app”: { 
  “signingConfigs”: [], 
  “compileSdkVersion”: 9, 
  “compatibleSdkVersion”: 9, 
  “products”: [ 
  { 
    “name”: “default”, 
    “signingConfig”: “default”, 
    “runtimeOS”: “OpenHarmony”, 
  } 
  ] 
}, 
ERROR: The compatibleSdkVersion 9 cannot be smaller than version 11 declared in library [:flutter] 
修改为:11 
{ 
  instancePath: ‘app.compileSdkVersion’, 
  keyword: ‘maximum’, 
  params: { comparison: ‘<=’, limit: 9 }, 
  message: ‘must be <= 9’, 
  location: ‘/Users/cherry.pu/Desktop/SVN/flutter/ohos/flutter_harmony_demo/ohos/build-profile.json5:19:28’ 
} 
{ 
  instancePath: ‘app.compatibleSdkVersion’, 
  keyword: ‘maximum’, 
  params: { comparison: ‘<=’, limit: 9 }, 
  message: ‘must be <= 9’, 
  location: ‘/Users/cherry.pu/Desktop/SVN/flutter/ohos/flutter_harmony_demo/ohos/build-profile.json5:20:31’ 
}
HarmonyOS
2024-05-13 16:21:20
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
妙蛙菜籽油

ide版本过低,重新升级即可

分享
微博
QQ
微信
回复
2024-05-13 22:32:23
相关问题
升级版本后,hap包装失败
1922浏览 • 1回复 待解决
使用自定义任务读取build-profile.josn5
1074浏览 • 1回复 待解决
用DevEcoStudio构建的Hap包安装失败
400浏览 • 1回复 待解决
webview加载Vue h5失败
17814浏览 • 5回复 待解决
HarmonyOS 汉字转拼音 i18n
571浏览 • 1回复 待解决