小编Sup*_*nta的帖子

Android Studio 模拟器无法在使用 WHPX 的 Windows 11 上运行

我的系统上有 Windows 11。
\n系统规格:

\n
    \n
  • 版本:Windows 11 家庭单语言
  • \n
  • 更新时间:21H2
  • \n
  • 安装在:\xe2\x80\x8e06-\xe2\x80\x8e07-\xe2\x80\x8e2021
  • \n
  • 操作系统版本:22000.65
  • \n
  • 体验:Windows功能体验包421.17400.45.3
  • \n
\n

我刚刚安装了 Android Studio。现在我想在没有 Intel HAXM 的情况下运行模拟器,因为我想将它与 wsl2 一起运行。

\n

所以在我的可选功能中,启用了这两个功能

\n
    \n
  1. Windows HyperVisor 平台
  2. \n
  3. 虚拟机平台
  4. \n
\n

但是在运行模拟器时我收到此错误:

\n
\xe2\x9d\xaf .\\emulator.exe -avd Pixel_3a_API_30\nemulator: Android emulator version 30.7.5.0 (build_id 7491168) (CL:N/A)\nhandleCpuAcceleration: feature check for hvf\nadded library vulkan-1.dll\nC:\\Users....\\AppData\\Local\\Android\\Sdk\\emulator\\qemu\\windows-x86_64\\qemu-system-x86_64.exe: WHPX: Failed to setup partition, hr=c0350005\nC:\\Users....\\AppData\\Local\\Android\\Sdk\\emulator\\qemu\\windows-x86_64\\qemu-system-x86_64.exe: failed to initialize WHPX: Invalid argument\n
Run Code Online (Sandbox Code Playgroud)\n

任何人都有建议,如何解决这个问题。

\n

hypervisor android-virtual-device android-emulator android-studio windows-11

20
推荐指数
4
解决办法
3万
查看次数