我遵循这里的指南:
使用Windows虚拟机管理程序技术运行Android Emulator。我目前正在开发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.在Windows功能中肯定启用了WHPX。有什么想法吗?使用azure可以吗?
发布于 2018-07-04 16:15:43
尝试禁用OpenGL。它适用于我在DSv3虚拟机中的工作。
要禁用它,请转到Program Files (或者,如果您使用的是64位计算机,请转到Program Files x86 )\Microsoft XDE\10.0.10586.0\SKUs\Android\xdesku.xml并删除此行: GuestDisplayProvider="VsEmulator.OpenGLGuestDisplay".
如果xde下有多个版本,请指出哪个版本有SKU\Android。
发布于 2020-05-03 23:45:43
今天的Azure VM版本可能没有启用完整的嵌套虚拟化功能,这可能不允许在Azure上使用Android模拟器。Dsv3或Esv3版本的计算机仅启用了嵌套虚拟化。我试过了,但不能运行Android模拟器。而现在你可以使用Visual Studio Emulator for Android旧版本的Android APIon Azure VM。有关分步指南的详细信息- https://www.sanganakauthority.com/2020/04/run-android-emulator-and-android-studio.html
https://stackoverflow.com/questions/50859771
复制相似问题