問(wèn)題描述
我有一臺(tái)筆記本電腦,主要用于 android studio 上的 android 開(kāi)發(fā),今天我運(yùn)行模擬器時(shí)突然收到此錯(cuò)誤消息(或它的過(guò)時(shí)版本)
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驅(qū)動(dòng),但沒(méi)用,嘗試更新intel但失敗,有沒(méi)有辦法禁用這個(gè)?繞過(guò)兼容性渲染器并像以前一樣工作,模擬器現(xiàn)在很糟糕.任何解釋為什么會(huì)突然發(fā)生?
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 位,如果這對(duì)任何事情都有幫助的話,幾天前有更新.
Also I'm using windows 7 64-bit if that will help with anything, had an update few days ago.
推薦答案
我用的是Win10,但遇到同樣的問(wèn)題.上次模擬器更新后,模擬器開(kāi)始使我的應(yīng)用程序崩潰.就我而言,問(wèn)題是模擬器無(wú)法在硬件上運(yùn)行,即使我的 GPU 從未遇到過(guò)問(wèn)題.此外,彈出的GPU 驅(qū)動(dòng)程序問(wèn)題"窗口甚至沒(méi)有標(biāo)注它認(rèn)為是哪個(gè) GPU 存在問(wèn)題.
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.
對(duì)我來(lái)說(shuō),可行的解決方案是從終端運(yùn)行模擬器,使用命令強(qiáng)制它使用硬件圖形(而不是讓模擬器決定哪個(gè))運(yùn)行
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
其中 mode 是 host,因此它將與硬件一起運(yùn)行.
where mode is host so that it will run with hardware.
例如:
使用 Android Studio 終端移動(dòng)到模擬器所在的文件夾.Win10 默認(rèn)為:C:UsersuserNameAppDataLocalAndroidsdkemulator
Using Android Studio terminal move to folder where the emulator is located. Default on Win10 is: C:UsersuserNameAppDataLocalAndroidsdkemulator
通過(guò)列出可用的模擬器來(lái)查找要運(yùn)行的模擬器:模擬器-list-avds
Find emulator to run by listing available ones:
emulator -list-avds
使用 -gpu host 選項(xiàng)運(yùn)行模擬器:模擬器 -avd avd_name -gpu 主機(jī)
Run emulator with -gpu host option:
emulator -avd avd_name -gpu host
有關(guān)此鏈接的更多信息
這篇關(guān)于Android Studio,運(yùn)行模擬器時(shí)突然出現(xiàn) GPU 驅(qū)動(dòng)程序問(wèn)題的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!