HarmonyOS模拟器(phone-x86-api9)一直卡顿的解决方法

在DevEco Studio 3.1.1 Release版本中的Device Manager中创建本地的模拟器,创建phone-x86-api9模拟器成功,但是启动该新建的模拟器一直显示"HarmonyOS"logo图片,然后一直卡在这里,运行结果如下所示:

检查模拟器日志文件Emulator.log发现存在如下问题:

复制代码
2024-06-20 10:34:57.131 [Info] set  "HarmonyOS_HVD_HOME"  :  "D:\\Huawei\\HarmonyOSEmulator\\deployed"
2024-06-20 10:34:57.192 [Info] whpx unavailable.
2024-06-20 10:35:01.228 [Info] Use haxm as hardware accelerator.
2024-06-20 10:35:01.232 [Info] Find the free port:  8554
2024-06-20 10:35:02.837 [Info] Starting qemu.
2024-06-20 10:39:41.432 [Info] Wait for saving snapshot..
2024-06-20 10:39:42.741 [Info] Succeeded in saving snapshot!
2024-06-20 10:39:43.477 [Info] qemu stopped, exit code is 0
2024-06-20 10:43:08.119 [Info] set  "HarmonyOS_HVD_HOME"  :  "D:\\Huawei\\HarmonyOSEmulator\\deployed"
2024-06-20 10:43:08.202 [Info] whpx unavailable.
2024-06-20 10:43:15.169 [Info] Use haxm as hardware accelerator.
2024-06-20 10:43:15.174 [Info] Find the free port:  8554
2024-06-20 10:43:16.324 [Info] Starting qemu.
2024-06-20 10:52:04.335 [Info] Wait for saving snapshot..
2024-06-20 10:52:05.210 [Info] Succeeded in saving snapshot!
2024-06-20 10:52:06.022 [Info] qemu stopped, exit code is 0
2024-06-20 14:19:19.679 [Info] set  "HarmonyOS_HVD_HOME"  :  "D:\\Huawei\\HarmonyOSEmulator\\deployed"
2024-06-20 14:19:19.836 [Info] whpx unavailable.
2024-06-20 14:19:28.278 [Info] Use haxm as hardware accelerator.
2024-06-20 14:19:28.283 [Info] Find the free port:  8554
2024-06-20 14:19:30.420 [Info] Starting qemu.

问题在于whpx unavailable

日志中提到的whpx是Microsoft 的 Hyper-V 和 Windows 虚拟机监控程序平台 (WHPX)。

解决之道是 :启动Windows 虚拟机监控程序平台和虚拟机平台

勾选如上图红色箭头所示的内容,然后重启电脑,重启DevEco Studio,启动模拟成功,运行如下图所示:

相关推荐
●VON17 小时前
Flutter 与鸿蒙深度整合:如何实现原生功能调用
flutter·华为·harmonyos
食品一少年1 天前
【Day7-10】开源鸿蒙组件封装实战(3)仿知乎日报的首页轮播图实现
华为·开源·harmonyos
HONG````1 天前
鸿蒙应用HTTP网络请求实战指南:从基础到进阶优化
网络·http·harmonyos
赵财猫._.1 天前
HarmonyOS内存优化实战:泄漏检测、大对象管理与垃圾回收策略
华为·wpf·harmonyos
风浅月明1 天前
[Harmony]跳转应用商店进行版本更新
harmonyos·版本更新
欧学明1 天前
希影RS80 Ultra 鸿蒙巨幕 4K投影仪:2㎡阳台的多元光影体验
harmonyos·希影 rs80 ultra
马剑威(威哥爱编程)1 天前
【鸿蒙开发实战篇】鸿蒙跨设备的碰一碰文件分享
华为·harmonyos
赵财猫._.1 天前
鸿蒙超级终端体验:无缝流转的底层实现与用户体验优化
wpf·harmonyos·ux
A懿轩A1 天前
【2025版 OpenHarmony】GitCode 口袋工具 v1.0.3:Flutter + HarmonyOS 深色模式全面启用
flutter·harmonyos·openharmony·gitcode·开源鸿蒙
YJlio1 天前
[鸿蒙2025领航者闯关] 基于鸿蒙 6 的「隐私感知跨设备办公助手」实战:星盾安全 + AI防窥 + 方舟引擎优化全流程复盘
人工智能·安全·harmonyos