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
按赞同
/
按时间
hm_yxd

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

分享
微博
QQ
微信
回复
2024-05-13 22:32:23
相关问题
使用自定义任务读取build-profile.josn5
451浏览 • 1回复 待解决
webview加载Vue h5失败
16050浏览 • 5回复 待解决
升级版本后,hap包装失败
481浏览 • 1回复 待解决
啥时候flutter支持鸿蒙啊
9977浏览 • 4回复 待解决
Flutter SDK支持HarmonyOS Next
518浏览 • 1回复 待解决
flutter和鸿蒙如何相互调用?
12402浏览 • 3回复 待解决
运行flutter doctor -v后显示错误代码
539浏览 • 1回复 待解决
Build Output文件报错
7130浏览 • 1回复 待解决
组件状态修改与build渲染机制
315浏览 • 1回复 待解决
build.gradle中的签名问题
6448浏览 • 2回复 待解决
请问DevEco Studio支持Mac版本吗?
6967浏览 • 3回复 待解决
Mac下有什么好的编程字体?
1088浏览 • 1回复 待解决