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

查看:1356
本文介绍了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?

我也在使用64位Windows 7,如果这对任何事情都有帮助,几天前进行了更新.

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

其中模式主机,因此它将与硬件一起运行.

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

例如:

使用Android Studio终端移动到模拟器所在的文件夹. Win10上的默认值为:C:\ Users \ 用户名 \ AppData \ Local \ Android \ sdk \ emulator

Using Android Studio terminal move to folder where the emulator is located. Default on Win10 is: C:\Users\userName\AppData\Local\Android\sdk\emulator

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

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

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

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

有关此链接

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆