Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: The Mesa software renderer is deprecated. Use Swiftshader for software rendering

When I run a project in Android Studio using the emulator I get the following error in the debug window:

/home/me/Android/Sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_6P_API_24

WARNING: The Mesa software renderer is deprecated. Use Swiftshader (-gpu swiftshader) for software rendering.

The emulator works fine as far as I can tell. It is only a warning but I thought I would try to fix it. The most helpful things I could find were

  • Universal rendering with SwiftShader, now open source
  • SwiftShader source code
  • The Mesa 3D Graphics Library
  • Emulator 2.0 Preview Release Notes

However, they didn't tell me how to fix it. I'm using GLES 2.0 software rendering on the Ununtu Linux version of Android Studio and the Emulator. I checked the advanced settings in the AVD configuration but I didn't see any obvious changes to make.

like image 688
Suragch Avatar asked Dec 18 '22 13:12

Suragch


1 Answers

I changed a file in this path under windows:

c:\Users\<user_name>\.android\avd\<avd_name>.avd\config.ini

changed property hw.gpu.mode value from mesa to swiftshader and the warning is gone.

Don't know if theres a global property where all new AVD will take it from.

like image 194
Tassadar Avatar answered Dec 28 '22 06:12

Tassadar