HarmonyOS flutter组件无法自动下载

报错如下:

/Applications/DevEco-Studio.app/Contents/tools/ohpm/bin/ohpm install --registry https://ohpm.openharmony.cn/ohpm/ --strict_ssl true
ohpm INFO: MetaDataFetcher fetching meta info of package '@ohos/hypium' from https://ohpm.openharmony.cn/ohpm/
ohpm ERROR: missing: @ohos/flutter_ohos@/Users/xxxxx/Desktop/ola/opensource/SleepLess/ohtest/cm_ophs/ohos/har/flutter.har, required by @
ohpm ERROR: Found exception: Error: Fetch local file package error, /Users/xxxxx/Desktop/ola/opensource/SleepLess/ohtest/cm_ophs/ohos/har/flutter.har does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: ERUNNING execute tasks failed, Error: Fetch local file package error, /Users/xxxxx/Desktop/ola/opensource/SleepLess/ohtest/cm_ophs/ohos/har/flutter.har does not exist.
ohpm ERROR: Install failed, detail: Error: Fetch local file package error, /Users/xxxxx/Desktop/ola/opensource/SleepLess/ohtest/cm_ophs/ohos/har/flutter.har does not exist.
Process finished with exit code 1
HarmonyOS
1天前
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
put_get

根据报错信息没有找到flutter.har包,需要先执行编译命令才会有har包,请更新flutter_flutter dev分支到最新,清除缓存,并重新编译,编译命令flutter build hap,后面不需要再加–local-engine。

分享
微博
QQ
微信
回复
1天前
相关问题
HarmonyOS flutter run 会自动uninstall 一次
125浏览 • 1回复 待解决
HarmonyOS 项目接入flutter无法运行
59浏览 • 1回复 待解决
HarmonyOS XCode 15.3无法编译flutter engine
89浏览 • 1回复 待解决
module的资源无法下载
872浏览 • 1回复 待解决
MacOS DevEco Studio 无法下载 HarmonyOS SDK
10992浏览 • 3回复 待解决
HarmonyOS TextArea显示时无法自动聚焦
63浏览 • 1回复 待解决
HarmonyOS APP内自动下载安装新版本
298浏览 • 1回复 待解决
HarmonyOSflutter无法打开摄像头
59浏览 • 1回复 待解决
DevEco Studio 无法自动配置gradle
9954浏览 • 2回复 已解决
HarmonyOS 无法使用flutter_html 2.x版本
31浏览 • 1回复 待解决