HarmonyOS 鸿蒙Next在win10环境下启动模拟器失败的原因及解决方法
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
关掉然后用右键管理员打开试试,可能是权限问题
HarmonyOS鸿蒙Next在Win10环境下启动模拟器失败可能由以下原因导致:
- 硬件加速未启用:确保BIOS中已启用Intel VT-x或AMD-V虚拟化技术。
- Hyper-V冲突:Windows 10默认启用Hyper-V,可能与模拟器冲突。可通过“控制面板”->“程序和功能”->“启用或关闭Windows功能”中禁用Hyper-V。
- 显卡驱动问题:更新显卡驱动至最新版本。
- 模拟器配置不足:检查模拟器内存和CPU配置,确保满足最低要求。
- 系统权限问题:以管理员身份运行模拟器。
解决方法:依次检查并调整上述设置,确保环境配置正确。