HarmonyOS 鸿蒙Next在win10环境下启动模拟器失败的原因及解决方法

发布于 1周前 作者 sinazl 来自 鸿蒙OS

HarmonyOS 鸿蒙Next在win10环境下启动模拟器失败的原因及解决方法

请教在win10环境下启动鸿蒙模拟器失败的原因,以及如何解决?

下列日志提示读取adbkey失败,电脑上有如下文件,路径里不能有中文?还是读取文件权限问题?请教如何解决,谢谢。

ERROR | Failed to open rsa file: C:\Users\管理员\.android\adbkey

qemu-error.log

WARNING | System image is writable

Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.

WARNING | Not all modern X86 virtualization features supported, which introduces problems with slowdown when running HarmonyOS on multicore vCPUs. Setting HVD to run with 1 vCPU core only.

ERROR | Failed to open rsa file: C:\Users\管理员\.android\adbkey

WARNING | No hdc private key exists

pc_memory_init: above 4g size: c0000000

WARNING | Token auth requested without tls, restricting access to localhost.


qemu.log

INFO | added library vulkan-1.dll

INFO | configAndStartRenderer: setting vsync to 60 hz

HAX is working and emulator runs in fast virt mode.

INFO | Started GRPC server at 127.0.0.1:8554, security: Local+token

INFO | Advertising in: C:\Users\管理员\AppData\Local\Temp\hvd\running\pid_14640.ini


Emulator.log

2024-05-06 17:14:51.280 [Info] set "HarmonyOS_HVD_HOME" : "E:\\huawei\\HarmonyOSEmulator"

2024-05-06 17:14:51.875 [Info] whpx unavailable.

2024-05-06 17:14:52.563 [Info] Use haxm as hardware accelerator.

2024-05-06 17:14:52.579 [Info] Find the free port: 8554

2024-05-06 17:14:57.163 [Info] Starting qemu.

2024-05-06 17:24:59.545 [Info] Wait for saving snapshot..

2024-05-06 17:25:00.709 [Info] Succeeded in saving snapshot!

2024-05-06 17:25:07.604 [Info] qemu stopped, exit code is 0

2024-05-06 17:32:21.399 [Info] set "HarmonyOS_HVD_HOME" : "E:\\huawei\\HarmonyOSEmulator"

2024-05-06 17:32:21.586 [Info] whpx unavailable.

2024-05-06 17:32:41.154 [Info] Find the free port: 8554

2024-05-06 17:32:44.133 [Info] Starting qemu.

2024-05-06 17:38:53.231 [Info] Wait for saving snapshot..

2024-05-06 17:38:54.556 [Info] Succeeded in saving snapshot!

2024-05-06 17:39:05.036 [Warning] QProcess: Destroyed while process ("qemu-system-x86_64.exe") is still running.

2024-05-06 17:39:06.636 [Info] qemu stopped, exit code is 62097

2024-05-06 17:39:15.201 [Info] set "HarmonyOS_HVD_HOME" : "E:\\huawei\\HarmonyOSEmulator"

2024-05-06 17:39:15.360 [Info] whpx unavailable.

2024-05-06 17:39:15.962 [Info] Use haxm as hardware accelerator.

2024-05-06 17:39:15.978 [Info] Find the free port: 8554

2024-05-06 17:39:18.985 [Info] Starting qemu.

2024-05-06 18:20:20.732 [Info] Wait for saving snapshot..

2024-05-06 18:20:24.536 [Info] Succeeded in saving snapshot!

2024-05-06 18:20:29.183 [Info] qemu stopped, exit code is 0

2024-05-06 18:26:31.214 [Info] set "HarmonyOS_HVD_HOME" : "E:\\huawei\\HarmonyOSEmulator"

2024-05-06 18:26:31.482 [Info] whpx unavailable.

2024-05-06 18:26:32.399 [Info] Use haxm as hardware accelerator.

2024-05-06 18:26:32.416 [Info] Find the free port: 8554

2024-05-06 18:26:37.266 [Info] Starting qemu.

2024-05-06 18:42:11.455 [Info] Wait for saving snapshot..

2024-05-06 18:42:12.353 [Info] Succeeded in saving snapshot!

2024-05-06 18:42:14.673 [Info] qemu stopped, exit code is 0

2024-05-06 18:42:39.022 [Info] set "HarmonyOS_HVD_HOME" : "E:\\huawei\\HarmonyOSEmulator"

2024-05-06 18:42:39.259 [Info] whpx unavailable.

2024-05-06 18:42:40.504 [Info] Use haxm as hardware accelerator.

2024-05-06 18:42:40.522 [Info] Find the free port: 8554

2024-05-06 18:42:44.902 [Info] Starting qemu.

2024-05-06 22:42:51.973 [Info] Wait for saving snapshot..

2024-05-10 10:29:22.157 [Info] set "HarmonyOS_HVD_HOME" : "E:\\huawei\\HarmonyOSEmulator"

2024-05-10 10:29:23.155 [Info] whpx unavailable.

2024-05-10 10:29:24.929 [Info] Use haxm as hardware accelerator.

2024-05-10 10:29:24.979 [Info] Find the free port: 8554

2024-05-10 10:29:29.318 [Info] Starting qemu.

2024-05-10 10:38:18.072 [Info] Wait for saving snapshot..

2024-05-10 10:38:20.526 [Info] Succeeded in saving snapshot!

2024-05-10 10:38:27.047 [Info] qemu stopped, exit code is 0

2024-05-10 10:38:37.206 [Info] set "HarmonyOS_HVD_HOME" : "E:\\huawei\\HarmonyOSEmulator"

2024-05-10 10:38:37.422 [Info] whpx unavailable.

2024-05-10 10:38:38.257 [Info] Use haxm as hardware accelerator.

2024-05-10 10:38:38.276 [Info] Find the free port: 8554

2024-05-10 10:38:43.636 [Info] Starting qemu.

2024-05-10 10:45:44.801 [Warning] QProcess: Destroyed while process ("E:\\harmonySDK\\hmscore\\2.2.0\\toolchains\\hdc.exe") is still running.

2024-05-10 10:45:44.851 [Critical] get system log from hdc shell error

更多关于HarmonyOS 鸿蒙Next在win10环境下启动模拟器失败的原因及解决方法的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html

4 回复

关闭deveco studio ,然后以管理员身份运行deveco studio,环视启动失败,报错一样,应该很多人遇到这个问题吧?

更多关于HarmonyOS 鸿蒙Next在win10环境下启动模拟器失败的原因及解决方法的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


关掉然后用右键管理员打开试试,可能是权限问题

在Windows 10环境下启动HarmonyOS鸿蒙Next模拟器失败,可能的原因包括:

  1. Hyper-V未启用:鸿蒙Next模拟器依赖Hyper-V进行虚拟化,若未启用,模拟器无法启动。可通过“控制面板”->“程序和功能”->“启用或关闭Windows功能”中勾选Hyper-V并重启系统。

  2. BIOS中虚拟化技术未开启:需进入BIOS设置,确保Intel VT-x或AMD-V虚拟化技术已启用。

  3. 系统版本不兼容:鸿蒙Next模拟器要求Windows 10版本至少为1809,若系统版本过低,需升级。

  4. 显卡驱动问题:确保显卡驱动为最新版本,旧版驱动可能导致模拟器无法启动。

  5. 内存不足:模拟器运行需要足够内存,若系统内存不足,可能导致启动失败。建议关闭其他占用内存较大的程序。

  6. 模拟器配置错误:检查模拟器配置,确保设备类型、系统镜像等设置正确。

  7. 防火墙或安全软件拦截:防火墙或安全软件可能阻止模拟器启动,可尝试暂时关闭或添加例外规则。

  8. 系统环境变量配置错误:确保系统环境变量中已正确配置模拟器所需路径。

  9. 模拟器版本问题:确保使用的是最新版本的鸿蒙Next模拟器,旧版本可能存在兼容性问题。

  10. 系统文件损坏:系统文件损坏可能导致模拟器无法启动,可尝试使用系统文件检查工具(如sfc /scannow)修复。

若以上方法均无效,可尝试重新安装模拟器或检查日志文件以获取更多错误信息。

HarmonyOS鸿蒙Next在Win10环境下启动模拟器失败可能由以下原因导致:

  1. 硬件加速未启用:确保BIOS中已启用Intel VT-x或AMD-V虚拟化技术。
  2. Hyper-V冲突:Windows 10默认启用Hyper-V,可能与模拟器冲突。可通过“控制面板”->“程序和功能”->“启用或关闭Windows功能”中禁用Hyper-V。
  3. 显卡驱动问题:更新显卡驱动至最新版本。
  4. 模拟器配置不足:检查模拟器内存和CPU配置,确保满足最低要求。
  5. 系统权限问题:以管理员身份运行模拟器。

解决方法:依次检查并调整上述设置,确保环境配置正确。

回到顶部
AI 助手
你好,我是IT营的 AI 助手
您可以尝试点击下方的快捷入口开启体验!