How to change GPU mode for Android 10 Google Play API Pixel 3 AVD in Android Studio for Linux

If you install the AVD with Google Play Store, you cannot modify the GPU from Automatic or Hardware to any other value. It appears greyed in the AVD settings.

Some of us do not have graphics cards on our systems and therefore, this setting has to be changed in order to enable Android Studio AVDs to boot properly. Else, we can the Vulkan graphics error in the event log.

To remove the GPU, do the following action after opening a terminal window in Linux, where Device10.avd is the Android 10 AVD created:

$ vi ~/.android/avd/Device10.avd/config.ini <enter>

Change the values in red for the below parameters in the file to those in blue as below.
hw.gpu.enabled=yes
hw.gpu.mode=auto

hw.gpu.enabled=no
hw.gpu.mode=off

Save the file and restart Android Studio. The AVD will not hang if there is no graphics card in the system.

2 thoughts on “How to change GPU mode for Android 10 Google Play API Pixel 3 AVD in Android Studio for Linux

  1. This is about your other post “How to use India income tax Java utilities on Linux”. I sadly had no way of leaving a comment on that post, so I’m resorting to contacting you this way. I apologise.

    I found the article very useful. Sadly it didn’t work for me. I’m running Linux Mint 20 with default settings. Would you please contact me over email so I could detail you the problems I am facing? It will be a huge help.

    Thanks

    Like

Comments are closed.