首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Azure VM上使用WHPX运行Android Emulator

无法在Azure VM上使用WHPX运行Android Emulator
EN

Stack Overflow用户
提问于 2018-06-14 22:23:43
回答 2查看 1.6K关注 0票数 1

我遵循这里的指南:

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

使用Windows虚拟机管理程序技术运行Android Emulator。我目前正在开发Azure VM D_v3系列。在调试我的示例应用程序的过程中,我得到了这个错误:

代码语言:javascript
复制
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可以吗?

EN

回答 2

Stack Overflow用户

发布于 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。

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

票数 0
EN

Stack Overflow用户

发布于 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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50859771

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档