HarmonyOS 鸿蒙Next 昨天还能启动本地模拟器的,今天就一直提示Haxm安装失败,怎么搞啊

HarmonyOS 鸿蒙Next 昨天还能启动本地模拟器的,今天就一直提示Haxm安装失败,怎么搞啊 按照官方说的虚拟能力跟Hyper-V不勾选,都做了还是这个提示,真麻烦啊

cke_126.png

cke_324.png


更多关于HarmonyOS 鸿蒙Next 昨天还能启动本地模拟器的,今天就一直提示Haxm安装失败,怎么搞啊的实战教程也可以访问 https://www.itying.com/category-93-b0.html

3 回复

提供下这个里面的qemu-err.log,Emulator.log,qemu.log的日志截图哈!

更多关于HarmonyOS 鸿蒙Next 昨天还能启动本地模拟器的,今天就一直提示Haxm安装失败,怎么搞啊的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


Emulator.log:
2023-12-14 11:21:47.562 [Info] set  "HarmonyOS_HVD_HOME"  :  "D:\\Huawei\\HarmonyOSEmulator\\deployed"
2023-12-14 11:21:47.848 [Info] whpx unavailable.
2023-12-14 11:21:47.948 [Critical] [Error] qeury haxm version: "'reg' 不是内部或外部命令,也不是可运行的程序\r\n或批处理文件。\r\n"

qemu.log:
* added library vulkan-1.dll
* configAndStartRenderer: setting vsync to 60 hz
* HAX is working and emulator runs in fast virt mode.
* Attempt to initialize voice without DirectSoundCapture object
* Attempt to initialize voice without DirectSoundCapture object
* Failed to create voice `goldfish_audio_in'
* Started GRPC server at 127.0.0.1:8554, security: Local+token
* Advertising in: C:\Users\admin\AppData\Local\Temp\hvd\running\pid_15084.ini
* Attempt to initialize voice without DirectSoundCapture object
* Attempt to initialize voice without DirectSoundCapture object
* Failed to create voice `adc'
* boot completed
* Increasing screen off timeout, logcat buffer size to 256K.
* Revoking microphone permissions
* Snapshot quick boot save
* Shutting down gRPC endpoint
* Shutting down gRPC endpoint
* Closing down rootcanal.

qemu-err.log
* System image is writable
* dsound: Could not initialize DirectSoundCapture
* dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID
* qemu-system-x86_64.exe: warning: opening audio input failed
* Token auth requested without tls, restricting access to localhost.

HarmonyOS Next本地模拟器启动时提示Haxm安装失败,可能是由于以下原因:

  1. Haxm版本不兼容;
  2. Hyper-V或其他虚拟化技术冲突;
  3. 系统环境变量配置错误;
  4. BIOS中虚拟化技术未启用。

解决方法:

  1. 确保安装的Haxm版本与当前系统兼容;
  2. 检查并关闭Hyper-V或其他虚拟化技术;
  3. 确认系统环境变量中已正确配置Haxm路径;
  4. 进入BIOS,启用Intel VT-x或AMD-V虚拟化技术。

完成上述步骤后,重新启动模拟器。

回到顶部