Regarding GPU mode error in launching Android virtual device
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.
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, 2022Comments
-
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:
Any help would be greatly appreciated!Thanks.....
-
Tanvir Rahman about 8 yearsI 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 over 7 yearsJust Setting it to Automatic work for me ...Thanks @user3814327
-
Andy Jones almost 7 yearsThis is the only solution that works for me. (automatic mode choses hardware graphics, which are currently not working.)
-
phoenix almost 7 yearsWorked for me on Android Studio 2.3.3 and Ubuntu 16.04.2 LTS x64.
-
phoenix almost 7 yearsThis do not work for me on Android Studio 2.3.3 and Ubuntu 16.04.2 LTS x64.