【问题标题】:Unable to run Android Emulator using WHPX on Azure VM无法在 Azure VM 上使用 WHPX 运行 Android 模拟器
【发布时间】:2018-11-24 08:47:20
【问题描述】:

我按照这里的指南进行操作:

https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?tabs=vswin

使用 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 功能中启用。有什么想法吗?天蓝色可以吗?

【问题讨论】:

    标签: android azure android-emulator hyper-v


    【解决方案1】:

    尝试禁用 OpenGL。它在 DSv3 VM 中为我工作。

    可以通过转到 Program Files(或 Program Files x86,如果您在 64 位计算机上)\Microsoft XDE\10.0.10586.0\SKUs\Android\xdesku.xml 并删除此行来禁用它:GuestDisplayProvider= "VsEmulator.OpenGLGuestDisplay"。

    如果xde下有多个版本,请识别哪个版本有SKUs\Android。

    参考: https://social.msdn.microsoft.com/Forums/en-US/d7c0bbc5-eb29-4080-8398-e55111d98c91/vs-android-emulator-cannot-boot?forum=visualstudiogeneral

    【讨论】:

      【解决方案2】:

      今天的 Azure VM 版本可能没有启用完整的嵌套虚拟化功能,这可能不允许在 Azure 上运行 Android 模拟器。 Dsv3 或 Esv3 版本的机器只启用了嵌套虚拟化。我试过但无法运行 Android 模拟器。虽然现在您可以在 Azure VM 上使用 Visual Studio Emulator for Android [Android API 的旧版本]。请参阅分步指南的详细信息 - https://www.sanganakauthority.com/2020/04/run-android-emulator-and-android-studio.html

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2021-09-23
        • 2020-05-08
        • 2019-08-07
        • 2020-08-11
        • 1970-01-01
        • 2017-08-08
        • 1970-01-01
        相关资源
        最近更新 更多