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

哈哈,也是无语...

记一下,长点心

相关推荐
用户29469405448168 小时前
DSH Desktop - Electron on HarmonyOS Edition
harmonyos·deepseek
好的佩奇9 小时前
Dart 之类型系统
flutter·dart
IsITGirl10 小时前
HarmonyOS 鸿蒙 WuKong 稳定性测试报错 Failed to connect to AAMS(已解决)
华为·harmonyos
万物智能信息科技12 小时前
鸿蒙RS232驱动开发—【万物智能之开源鸿蒙OpenHarmony系统实战开发系列教程】
驱动开发·华为·开源·harmonyos·鸿蒙
less_1213814 小时前
鸿蒙 WPS Open SDK 接入指南:凭据申请、HAR 集成与 registerApp 校验
华为·harmonyos·wps
恋猫de小郭15 小时前
Dart 3.15 新特性:this 终于支持类型提升了
android·前端·flutter
威哥爱编程1 天前
HarmonyOS 7 Agent 开发实战 07:多 Agent 任务分解与反思
agent·harmonyos
威哥爱编程1 天前
HarmonyOS 7 Agent 开发实战 06:Agent 记忆与上下文管理
agent·harmonyos
HarmonyOS_SDK1 天前
【HarmonyOS SDK Skills】扫码能力一键构建,系统级高精度扫码秒实现
harmonyos
结局无敌1 天前
React Native for OpenHarmony 实战:三方库 react-native-modal-dialog 的鸿蒙化适配指南
深度学习·算法·react native·react.js·harmonyos