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
相关问题
HarmonyOS flutter build hap --debug编译失败
1245浏览 • 1回复 待解决
HarmonyOS flutter build报错
1426浏览 • 1回复 待解决
HarmonyOS flutter build har fail
929浏览 • 1回复 待解决
HarmonyOS Build Hap(s)/APP(s)的产物问题
995浏览 • 1回复 待解决
HarmonyOS hdc 安装 hap 失败
1605浏览 • 1回复 待解决
升级版本后,hap包装失败
2702浏览 • 1回复 待解决
使用自定义任务读取build-profile.josn5
2068浏览 • 1回复 待解决
用DevEcoStudio构建的Hap包安装失败
1495浏览 • 1回复 待解决
webview加载Vue h5失败
19030浏览 • 5回复 待解决