简体   繁体   English

无法在Visual Studio 2017中启动Android模拟器

[英]Android Emulator cannot be started in visual studio 2017

I am working On Xamrin Project and when I run my application on Android Emulator, it gives me this error each time I try to launch it : 我正在Xamrin Project上工作,当我在Android Emulator上运行应用程序时,每次尝试启动它时都会出现此错误:

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.

I have tried to re-create the android device many times but still not working. 我尝试过多次重新创建android设备,但仍然无法正常工作。

Any help please? 有什么帮助吗?

The problem occurs because AVD tries to render graphics using system's graphics card and could not do that either because your system's graphics driver is not up to date or it does not support this so here is the solution. 发生问题是因为AVD尝试使用系统的图形卡渲染图形,而由于系统的图形驱动程序不是最新的或不支持此功能而无法执行此操作,因此这里是解决方案。

1.Edit your AVD. 1.编辑您的AVD。

2.Uncheck Use Host GPU option. 2.取消选中使用主机GPU选项。

3.Click Finish (Save). 3.单击完成(保存)。

4.Restart your emulator. 4.重新启动模拟器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM