android - 无法在 Azure VM 上使用 WHPX 运行 Android 模拟器
问题描述
我按照这里的指南:
使用 Windows Hypervisor 技术运行 Android 模拟器。我目前正在研究 Azure VM D_v3 系列。在调试我的示例应用程序期间,我遇到了这个错误:
2>emulator: CPU Acceleration: DISABLED
2>emulator: CPU Acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.
2>emulator: ERROR: x86_64 emulation currently requires hardware acceleration!
2>Please ensure Windows Hypervisor Platform (WHPX) is properly installed and usable.
2>CPU acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.
WHPX 肯定在 Windows 功能中启用。有什么想法吗?天蓝色可以吗?
解决方案
尝试禁用 OpenGL。它在 DSv3 VM 中为我工作。
可以通过转到 Program Files(或 Program Files x86,如果您在 64 位计算机上)\Microsoft XDE\10.0.10586.0\SKUs\Android\xdesku.xml 并删除此行来禁用它:GuestDisplayProvider="VsEmulator.xml"。 OpenGLGuestDisplay”。
如果xde下有多个版本,请确定哪个版本有SKUs\Android。
推荐阅读
- ruby-on-rails - 如何修复源映射错误:错误:必须对部分偏移进行排序且不重叠
- visual-studio-code - 用于检测的正则表达式!这不起作用
- c++ - 如何在 C++ 中设置 Actor 的“渲染自定义深度通道”和“深度模板值”?
- beautifulsoup - 刚刚在 IDLE PyCharm 中消失的超大文本
- python - 如何修复不支持的操作数类型错误?
- python - Python:带有原始 f 字符串的正则表达式仅在 50% 的时间内有效
- python - Matplotlib 图 x 刻度在所有 x 数据点之后
- linux - 使用 awk 或 sed 删除模式
- javascript - getDisplayMedia() 在 Android 设备上无法正常工作
- android - 即时应用程序中的 ShortcutManager 崩溃