flutter 鸿蒙

花了长时间去找问题,在官网上看


如果是这样的在模拟器上跑不了,别挣扎了,真机跑

start hap build...

Running Hvigor task assembleHap...
Compiling debug_ohos_application for the Ohos...
√ Built ohos\entry\build\default\outputs\default\entry-default-signed.hap.
installing hap. bundleName: com.example.flutter_house_manager
_installApp: cmd=[D:\DevEco\DevEco Studio\sdk\default\openharmony\toolchains\hdc.exe, -t, 127.0.0.1:5555, shell, bm, install, -p, data/local/tmp/flutterInstallTemp]
code=0, stdout=error: failed to install bundle.
code:9568347
error: install parse native so failed.
, stderr=
Uninstalling old version...
installing hap. bundleName: com.example.flutter_house_manager
_installApp: cmd=[D:\DevEco\DevEco Studio\sdk\default\openharmony\toolchains\hdc.exe, -t, 127.0.0.1:5555, shell, bm, install, -p, data/local/tmp/flutterInstallTemp]
code=0, stdout=error: failed to install bundle.
code:9568347
error: install parse native so failed.
, stderr=
Error: Failed to install Hap again.
Error launching application on 127.0.0.1:5555.

Windows或Mac x86架构无法运行模拟器

由于模拟器当前仅支持Mac arm架构,且flutter应用尚未适配x86架构,因此在Windows或Mac的x86运行模拟器会遇到限制。

哈哈,也是无语...

记一下,长点心

相关推荐
liulian09167 小时前
Flutter for OpenHarmony 跨平台开发:颜色选择器功能实战指南
flutter
liulian091611 小时前
Flutter for OpenHarmony 跨平台开发:BMI计算器功能实战指南
flutter·华为
xmdy586614 小时前
Flutter+开源鸿蒙实战|智安盾电商溯源平台Day1 项目搭建与整体方案拆解
flutter·开源·harmonyos
nashane15 小时前
HarmonyOS 6学习:应用签名文件丢失处理与更新完全指南
学习·华为·harmonyos·harmonyos 5
笔触狂放16 小时前
【项目】基于ArkTS的老年人智能应用开发(1)
harmonyos·arkts·鸿蒙
24白菜头18 小时前
【无标题】
c++·笔记·学习·harmonyos
LeesonWong19 小时前
Neo 构建鸿蒙应用【二】:技术路线全解
harmonyos
LeesonWong19 小时前
Neo 构建鸿蒙应用【三】:实战社交应用与工程感悟
harmonyos
小白640220 小时前
AI辅助设计Flutter蓝牙自动连接系统
人工智能·flutter
xmdy586620 小时前
Flutter+开源鸿蒙实战|智联邻里Day6 引入GetX全局架构+升级版下拉刷新+Toast弹窗+网络状态监听
flutter·开源·harmonyos