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
相关问题
webview加载Vue h5失败
15738浏览 • 5回复 待解决
升级版本后,hap包装失败
225浏览 • 1回复 待解决
啥时候flutter支持鸿蒙啊
9671浏览 • 4回复 待解决
Flutter SDK支持HarmonyOS Next
141浏览 • 1回复 待解决
flutter和鸿蒙如何相互调用?
12140浏览 • 3回复 待解决
build.gradle中的签名问题
6129浏览 • 2回复 待解决
组件状态修改与build渲染机制
29浏览 • 0回复 待解决
Build Output文件报错
6893浏览 • 1回复 待解决
运行flutter doctor -v后显示错误代码
132浏览 • 1回复 待解决
Build Hi3861总是出现这种问题
413浏览 • 0回复 待解决
Mac下有什么好的编程字体?
750浏览 • 1回复 待解决
请问DevEco Studio支持Mac版本吗?
6672浏览 • 3回复 待解决
如何在mac os 系统安装ohpm?
1113浏览 • 1回复 待解决
输入python build.py wifiiot报错怎么解决
7894浏览 • 1回复 待解决