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运行模拟器会遇到限制。

哈哈,也是无语...

记一下,长点心

相关推荐
音浪豆豆_Rachel20 分钟前
Flutter跨平台通信的类型安全艺术:枚举与复杂对象在鸿蒙生态中的映射与序列化
flutter·harmonyos
昼-枕27 分钟前
【鸿蒙Flutter入门】10分钟快速上手开发天气应用
flutter·华为·harmonyos
前端世界29 分钟前
鸿蒙应用能耗优化实战:如何避免引用不当引发的后台运行
华为·harmonyos
kirk_wang30 分钟前
Flutter `shared_preferences` 三方库在 OpenHarmony 平台的适配实践
flutter·移动开发·跨平台·arkts·鸿蒙
鸿蒙开发工程师—阿辉35 分钟前
HarmonyOS 5 上下文的使用:理清“上下文”的关系
华为·harmonyos
音浪豆豆_Rachel1 小时前
Flutter鸿蒙文件选择器内核解析:从Dart调用到ArkTS系统级对话
flutter·harmonyos
鸿蒙开发工程师—阿辉1 小时前
HarmonyOS 5 上下文的使用:UIContext 与 WindowStage 的关系
华为·harmonyos
音浪豆豆_Rachel1 小时前
Flutter鸿蒙文件选择器实现层解析:消息通道、协议转换与数据处理
flutter·华为·harmonyos
音浪豆豆_Rachel1 小时前
Flutter鸿蒙文件选择器入口解析:插件生命周期与平台绑定
flutter·harmonyos
特立独行的猫a1 小时前
鸿蒙PC三方库移植:x264视频编码库的移植适配实践
华为·音视频·harmonyos·三方库移植·鸿蒙pc