Sup*_*nta 20 hypervisor android-virtual-device android-emulator android-studio windows-11
我的系统上有 Windows 11。
\n系统规格:
我刚刚安装了 Android Studio。现在我想在没有 Intel HAXM 的情况下运行模拟器,因为我想将它与 wsl2 一起运行。
\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\nRun Code Online (Sandbox Code Playgroud)\n任何人都有建议,如何解决这个问题。
\nZes*_*wen 19
最新版本的 Android 模拟器 - 31.1.2 正在修复该问题。通过 SDK Manager 进行更新。发布日期:2021 年 11 月 11 日。
\n正如Mark Wood-Patrick的回答所述,模拟器尚未更新,但您可以下载包含修复程序的新模拟器二进制文件!
\n\n\nWindows:https://dl.google.com/android/repository/emulator-windows_x64-7869535.zip
\n
\nlinux:https://dl.google.com/android/repository/emulator-linux_x64-7869535.zip
\nmacosx:https://dl.google.com/android/repository/emulator-darwin_x64-7869535.zip
WHPX 目前无法与 Windows 11 一起使用,当它得到修复时我会更新这个答案。
\n要禁用 Hyper-V,您必须执行以下步骤:
\nTurn Windows features on or off。Hyper-V和Windows Hypervisor platform(可能需要取消选中Windows Sandbox)。Android Emulator Hypervisor Driver for AMD Processors (installer).cd C:\\Users\\User\\AppData\\Local\\Android\\Sdk\\emulator\\与您的用户一起输入。.\\emulator.exe -avd Pixel_4a_API_30 -accel off 您的 AVD 设备名称。小智 5
目前的解决方案,直到 Google 发布新版本的模拟器:
从https://issuetracker.google.com/issues/202188690#comment27下载二进制文件并将其解压到模拟器目录中,替换 qemu 二进制文件。
| 归档时间: |
|
| 查看次数: |
28124 次 |
| 最近记录: |