Regarding GPU mode error in launching Android virtual device

11,175

Solution 1

Go to Virtual device manager, click 'Show on Disk' in the menu of the Virtual device. Open the config.ini file and change the respective line to: hw.gpu.mode=guest Then save the config.ini and then run Virtual device again. It should work.

Solution 2

I had the same error and what worked for me was : Open AVD manager as in the screenshot in the question. Then click on Edit this AVD on the right. After the configuration window opens, there is a setting for Graphics in Emulated Performance. I set it to Auto which solved the error for me.

Share:
11,175
Tanvir Rahman
Author by

Tanvir Rahman

Hey there, I’m Tanvir. I’m a freelance web developer living in Dhaka, Bangladesh. A great fan of latest technologies, modern web design trend and rich user experience (UX).I love to play with colors and codes. It's not only my profession it's also my passion. Thanks for visiting my profile.

Updated on July 04, 2022

Comments

  • Tanvir Rahman
    Tanvir Rahman almost 2 years

    When I am trying to launch Android virtual device in Android Studio 2.0, it is giving me following error.

    ERROR: Invalid GPU mode 'mesa', use one of: on off host guest

    A screen shot is given bellow related to this error: Error

    Any help would be greatly appreciated!Thanks.....

  • Tanvir Rahman
    Tanvir Rahman about 8 years
    I recently changed my OS.Now it's working fine.If someone get help from your answer,i will mark it as accepted answer.Thanks.
  • PN10
    PN10 over 7 years
    Just Setting it to Automatic work for me ...Thanks @user3814327
  • Andy Jones
    Andy Jones almost 7 years
    This is the only solution that works for me. (automatic mode choses hardware graphics, which are currently not working.)
  • phoenix
    phoenix almost 7 years
    Worked for me on Android Studio 2.3.3 and Ubuntu 16.04.2 LTS x64.
  • phoenix
    phoenix almost 7 years
    This do not work for me on Android Studio 2.3.3 and Ubuntu 16.04.2 LTS x64.