Android Studio, Suddenly Got Gpu Driver Issue When Running Emulator

Android Studio, Suddenly got GPU Driver Issue when running emulator

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.

For example:

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

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

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

More info on this link

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

I also had this issue recently. I solved it by updating my emulator and related files in Android Studio. I believe you can do this by clicking "Help" -> "Check for updates" in Android Studio and then letting it install all updates.

You may need to check for updates from the "Beta channel" (it is usually "Stable channel" by default). 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

After this is all completed, try restarting Android Studio and then do a fresh clean/rebuild of the project.

More in-depth info here: https://developer.android.com/studio/intro/update.html



Related Topics



Leave a reply



Submit