花了长时间去找问题,在官网上看
如果是这样的在模拟器上跑不了,别挣扎了,真机跑
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运行模拟器会遇到限制。
哈哈,也是无语...
记一下,长点心