Android Studio,运行模拟器时突然出现 GPU 驱动程序问题

Android Studio, Suddenly got GPU Driver Issue when running emulator(Android Studio,运行模拟器时突然出现 GPU 驱动程序问题)

本文介绍了Android Studio,运行模拟器时突然出现 GPU 驱动程序问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台笔记本电脑,主要用于 android studio 上的 android 开发,今天我运行模拟器时突然收到此错误消息(或它的过时版本)

I have a laptop that I mainly use for android development on android studio, today all of the sudden got this error message (or an outdated version of it) when i ran my emulator

Your GPU driver information:

GPU #1
Make: 8086
Model: Intel(R) HD Graphics Family
Device ID: 0a16
Driver version: 10.18.10.3945
GPU #2
Make: 10de
Model: NVIDIA GeForce 820M
Device ID: 1140
Driver version: 22.21.13.8476 

Some users have experienced emulator stability issues with this driver version. As a result, were selecting a compatibility renderer. Please check with your manufacturer to see if there is an updated driver available. 

更新了geforce驱动,但没用,尝试更新intel但失败,有没有办法禁用这个?绕过兼容性渲染器并像以前一样工作,模拟器现在很糟糕.任何解释为什么会突然发生?

Updated the geforce driver, but no use, tried to update the intel one but failed, is there a way to disable this? bypass the compatibility renderer and work as I used to, the emulator is awful now. Any explanation why that occurred all of the sudden?

另外我正在使用 Windows 7 64 位,如果这对任何事情都有帮助的话,几天前有更新.

Also I'm using windows 7 64-bit if that will help with anything, had an update few days ago.

推荐答案

我用的是Win10,但遇到同样的问题.上次模拟器更新后,模拟器开始使我的应用程序崩溃.就我而言,问题是模拟器无法在硬件上运行,即使我的 GPU 从未遇到过问题.此外,弹出的GPU 驱动程序问题"窗口甚至没有标注它认为是哪个 GPU 存在问题.

I am using Win10 but have the same problem. Emulator started crashing my app after last emulator update. In my case, problem is that emulator does not run on hardware even though I never had a problem with my GPUs. Also, the "GPU driver issue" window that pops up doesn't even label WHICH one of the GPUs it thinks is the problem.

对我来说,可行的解决方案是从终端运行模拟器,使用命令强制它使用硬件图形(而不是让模拟器决定哪个)运行

For me the solution that worked is to run emulator from terminal, forcing it to run using hardware graphics (instead of letting emulator decide on which) using command

emulator -avd avd_name -gpu mode

其中 modehost,因此它将与硬件一起运行.

where mode is host so that it will run with hardware.

例如:

使用 Android Studio 终端移动到模拟器所在的文件夹.Win10 默认为:C:UsersuserNameAppDataLocalAndroidsdkemulator

Using Android Studio terminal move to folder where the emulator is located. Default on Win10 is: C:UsersuserNameAppDataLocalAndroidsdkemulator

通过列出可用的模拟器来查找要运行的模拟器:模拟器-list-avds

Find emulator to run by listing available ones: emulator -list-avds

使用 -gpu host 选项运行模拟器:模拟器 -avd avd_name -gpu 主机

Run emulator with -gpu host option: emulator -avd avd_name -gpu host

有关此链接的更多信息

这篇关于Android Studio,运行模拟器时突然出现 GPU 驱动程序问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:Android Studio,运行模拟器时突然出现 GPU 驱动程序问题

基础教程推荐