You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows11下Android Emulator(WHPX)无法启动问题求助

问题:Windows 11下Android Emulator无法启动(WHPX模式)

问题背景

我是Windows 11用户,此前一直使用WHPX(Windows Hypervisor Platform)运行Android Emulator,未使用过AEHD。因Windows Update未完成导致设置回滚,出现Android Studio中Emulator无法启动的问题:弹出“Install Android Emulator hypervisor driver”提示后直接异常终止。

已尝试操作

  • 在“启用或关闭Windows功能”中勾选Hyper-V、Windows Hypervisor Platform及Windows Subsystem for Linux,重启系统确认功能已启用,但问题未解决。

相关命令执行结果

>emulator -avd Pixel_8_API_34 -verbose -show-kernel
INFO         | Android emulator version 35.5.10.0 (build_id 13402964) (CL:N/A)

INFO         | Found AVD name 'Pixel_8_API_34'
INFO         | Found AVD target architecture: x86_64

INFO         | Checking system compatibility:
INFO         |   Checking: hasCompatibleHypervisor
DEBUG   | Checking whether Windows Hypervisor Platform (WHPX) is available.
DEBUG   | WinHvPlatform.dll found. Looking for WHvGetCapability...
DEBUG   | WHvGetCapability found. Querying WHPX capabilities...
DEBUG   | WHvGetCapability failed. hr=0x00000000 whpx_cap.HypervisorPresent? 0

DEBUG   | WHPX is either not available or not installed.
INFO         |      Ok: Hypervisor compatibility to run avd: `Pixel_8_API_34` are met
INFO         |   Checking: hasSufficientSystem
INFO         |      Ok: System requirements to run avd: `Pixel_8_API_34` are met
INFO         |   Checking: hasSufficientHwGpu
INFO         |      Ok: Hardware GPU requirements to run avd: `Pixel_8_API_34` are passed
INFO         |   Checking: hasSufficientDiskSpace
INFO         |      Ok: Disk space requirements to run avd: `Pixel_8_API_34` are met

DEBUG   | CPU Acceleration: DISABLED
DEBUG   | CPU Acceleration status: Hyper-V detected and Windows Hypervisor Platform is available. Please ensure both the "Hyper-V" and "Windows Hypervisor Platform" features enabled in "Turn Windows features on or off".
DEBUG   | handleCpuAcceleration: feature check for hvf
ERROR        | x86_64 emulation currently requires hardware acceleration!
CPU acceleration status: Hyper-V detected and Windows Hypervisor Platform is available. Please ensure both the "Hyper-V" and "Windows Hypervisor Platform" features enabled in "Turn Windows features on or off".
More info on configuring VM acceleration on Windows:
https://developer.android.com/studio/run/emulator-acceleration#vm-windows
General information on acceleration: https://developer.android.com/studio/run/emulator-acceleration.


>systeminfo
Virtualization-based security: Status: Running
                               Required Security Properties:
                               Available Security Properties:
                                     Base Virtualization Support
                                     Secure Boot
                                     DMA Protection
                                     UEFI Code Readonly
                                     SMM Security Mitigations 1.0
                                     Mode Based Execution Control
                                     APIC Virtualization
                               Services Configured:
                                     Hypervisor enforced Code Integrity
                               Services Running:
                                     Hypervisor enforced Code Integrity
                               App Control for Business policy: Enforced
                               App Control for Business user mode policy: Off
                               Security Features Enabled:
Hyper-V Requirements:          A hypervisor has been detected. Features required for Hyper-V will not be displayed.


>emulator-check accel
accel:
6
Hyper-V detected and Windows Hypervisor Platform is available. Please ensure both the "Hyper-V" and "Windows Hypervisor Platform" features enabled in "Turn Windows features on or off".
accel


>emulator-check hyper-v
hyper-v:
2
Hyper-V is enabled
hyper-v


PS C:\WINDOWS\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All                        
Path          :
Online        : True
RestartNeeded : False


>Android Studio Norwhal June 19 build
>You already have the latest version of Android Studio and plugins installed

>Android Studio > Tools > SDK Manager > SDK Component Installer > Invoking installer 
Running Android Emulator hypervisor driver installer
[SC] ControlService FAILED 1062:
The service has not been started.
[SC] DeleteService SUCCESS
[SC] StartService FAILED with error 4294967201.
Done


>sc query aehd
SERVICE_NAME: aehd
        TYPE               : 1  KERNEL_DRIVER
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 4294967201  (0xffffffa1)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0


>Intel® Processor Identification Utility 8.0.43
ADVANCED CPU TECHNOLOGIES -
Intel® AI Boost : No
Intel® 64 Architecture : Yes
Intel® Virtualization Technology : Yes
Intel® Hyper-Threading Technology : Yes
Intel® AES-NI : Yes
Intel® Advanced Vector Extensions : Yes
Enhanced Intel® SpeedStep Technology : Yes
Intel® SSE : Yes
Intel® SSE2 : Yes
Intel® SSE3 : Yes
Intel® SSE4 : Yes
Execute Disable Bit : Yes
Enhanced Halt State : Yes

解决建议

  • 修复系统组件损坏
    打开管理员PowerShell,执行以下命令修复系统文件:

    dism /online /cleanup-image /restorehealth
    sfc /scannow
    

    完成后重启系统,再次尝试启动模拟器。

  • 强制指定WHPX加速模式
    打开AVD管理器,编辑Pixel_8_API_34:

    1. 进入「Show Advanced Settings」
    2. 在「Emulated Performance」的「Graphics」选项选择「Hardware - GLES 2.0」
    3. 找到「Advanced」区域的「Additional command line options」,添加参数:-accel whpx
    4. 保存设置后重新启动模拟器。
  • 禁用Hypervisor强制代码完整性
    从systeminfo输出可见Hypervisor enforced Code Integrity处于运行状态,可能干扰WHPX:

    1. 打开组策略编辑器(运行gpedit.msc)
    2. 导航至计算机配置>管理模板>系统>Device Guard>打开基于虚拟化的安全
    3. 将该选项设置为「已禁用」,重启系统后测试。
  • 重新安装Android Emulator
    打开Android Studio的SDK管理器:

    1. 切换到「SDK Tools」标签
    2. 取消勾选「Android Emulator」,点击「Apply」完成卸载
    3. 重新勾选「Android Emulator」并安装最新版本,安装完成后重启Android Studio。
  • 验证BIOS虚拟化设置
    尽管Intel工具显示VT已启用,Windows Update回滚可能重置BIOS设置:

    1. 重启电脑进入BIOS界面(通常按F2/Del/F10,依机型而定)
    2. 找到「Intel Virtualization Technology」或「VT-x」选项,确认处于启用状态
    3. 保存BIOS设置后重启系统。

内容的提问来源于stack exchange,提问作者Ohgochi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 18:13:11