Android 模拟器无法在 visual studio 2017 年启动

Android Emulator cannot be started in visual studio 2017

我正在 Xamrin 项目上工作,当我 运行 我的应用程序在 Android 模拟器上时,每次我尝试启动它时都会出现此错误:

getGLES2ExtensionString: Could not find GLES 2.x config!  
Failed to obtain GLES 2.x extensions string!  
Could not initialize emulated framebuffer  
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.

我多次尝试重新创建 android 设备,但仍然无法正常工作。

有什么帮助吗?

出现这个问题是因为 AVD 尝试使用系统的显卡渲染图形,但由于您的系统的图形驱动程序不是最新的或者它不支持这一点而无法做到这一点,所以这里是解决方案。

1.Edit 你的 AVD。

2.Uncheck 使用主机 GPU 选项。

3.Click完成(保存)。

4.Restart 你的模拟器。