简体   繁体   English

运行 Android 模拟器时如何修复 GPU Driver Issue 错误

[英]How to fix GPU Driver Issue error when running the Android emulator

My android emulator was working perfectly a few weeks ago but has now given me an error.几周前,我的 android 模拟器运行良好,但现在出现错误。 When I run the code, a GPU Driver Issue error dialogue pops up along with the emulator.当我运行代码时,GPU 驱动程序问题错误对话框与模拟器一起弹出。 When I click "OK", the android emulator does not run the app as expected.当我单击“确定”时,android 模拟器没有按预期运行应用程序。

The error is as follows:错误如下:

Your GPU driver information: ... Some users have experienced emulator stability issues with this driver version. As a result, we're selecting a compatibility renderer. Please check with your manufacturer to see if there is an updated driver available. Your GPU driver information: ... Some users have experienced emulator stability issues with this driver version. As a result, we're selecting a compatibility renderer. Please check with your manufacturer to see if there is an updated driver available. Some users have experienced emulator stability issues with this driver version. As a result, we're selecting a compatibility renderer. Please check with your manufacturer to see if there is an updated driver available.

Here's a screenshot of the error, followed by a screenshot of the results of clicking "OK":这是错误的截图,然后是点击“确定”的结果截图:

运行 Android 模拟器时 GPU 驱动程序问题错误

GPU 驱动程序问题在模拟器中停止 Android 应用程序时出错

These steps made the emulator fast for me in my Dell latitude e7440 In the AVD manager, edit your emulator.这些步骤使我的 Dell latitude e7440 中的模拟器快速运行 在 AVD 管理器中,编辑您的模拟器。 Emulated performance- Graphics set to Software- GLES2.0 When your emulator starts, on the right side panel click on the three dots(extended controls) Go to settings tab- advanced.模拟性能-图形设置为软件-GLES2.0 当您的模拟器启动时,在右侧面板上单击三个点(扩展控件)转到设置选项卡-高级。 Select OpenGL ES renderer - ANGLE(D3D11) OpenGL ES API level - Renderer maximum选择 OpenGL ES 渲染器 - ANGLE(D3D11) OpenGL ES API 级别 - 渲染器最大值

Restart your emulator.重启你的模拟器。

Got the idea from here https://developer.android.com/studio/run/emulator-acceleration从这里得到了这个想法https://developer.android.com/studio/run/emulator-acceleration

angle_indirect: (Windows only) Use a Quick Boot-compatible variant of ANGLE Direct3D to render graphics using software acceleration. angle_indirect:(仅限 Windows)使用与快速启动兼容的 ANGLE Direct3D 变体来使用软件加速渲染图形。 This option is a good alternative to host mode if your computer can't use hardware acceleration.如果您的计算机无法使用硬件加速,则此选项是主机模式的一个很好的替代方案。 In most cases, ANGLE performance should be similar to using host mode because ANGLE uses Microsoft DirectX instead of OpenGL.在大多数情况下,ANGLE 性能应该类似于使用主机模式,因为 ANGLE 使用 Microsoft DirectX 而不是 OpenGL。 On Windows, Microsoft DirectX drivers typically have fewer issues than OpenGL drivers.在 Windows 上,Microsoft DirectX 驱动程序的问题通常比 OpenGL 驱动程序少。 This option uses Direct3D 11 and requires Windows 10, Windows 8.1, or Windows 7 SP1 with the Windows 7 Platform Update.此选项使用 Direct3D 11,并且需要带有 Windows 7 平台更新的 Windows 10、Windows 8.1 或 Windows 7 SP1。

I also had this issue recently.我最近也有这个问题。 I solved it by updating my emulator and related files in Android Studio.我通过在 Android Studio 中更新我的模拟器和相关文件来解决它。 I believe you can do this by clicking "Help" -> "Check for updates" in Android Studio and then letting it install all updates.我相信您可以通过在 Android Studio 中单击“帮助”->“检查更新”然后让它安装所有更新来完成此操作。

You may need to check for updates from the "Beta channel" (it is usually "Stable channel" by default).您可能需要从“Beta 频道”(默认情况下通常是“稳定频道”)检查更新。 You can do this by clicking File -> Settings -> Appearance & Behavior -> System Settings -> Updates and making sure to check the "Automatically check for updates" box, as well as "Beta channel" in the drop-down list.您可以通过单击文件 -> 设置 -> 外观和行为 -> 系统设置 -> 更新并确保选中“自动检查更新”框以及下拉列表中的“测试版频道”来执行此操作。

Android Studio updates settings to fix GPU driver issue with emulator Android Studio 更新设置以修复模拟器的 GPU 驱动程序问题

After this is all completed, try restarting Android Studio and then do a fresh clean/rebuild of the project.全部完成后,尝试重新启动 Android Studio,然后对项目进行全新的清理/重建。

More in-depth info here: https://developer.android.com/studio/intro/update.html更深入的信息在这里: https : //developer.android.com/studio/intro/update.html

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

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