Reputation: 23
when I run the emulator in android studio 3 canary 6 I have this error:
Emulator: libGL error: unable to load driver: r600_dri.so
Emulator: libGL error: driver pointer missing
Emulator: libGL error: failed to load driver: r600
Emulator: libGL error: unable to load driver: swrast_dri.so
Emulator: libGL error: failed to load driver: swrast
Emulator: X Error of failed request: BadValue (integer parameter out of range for operation)
Emulator: Major opcode of failed request: 155 (GLX)
Emulator: Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Emulator: Value in failed request: 0x0
Emulator: Serial number of failed request: 33
Emulator: Current serial number in output stream: 34
Emulator: Process finished with exit code 1
but when I command emulator by terminal ~/Android/Sdk/tools/emulator -avd (put name device) -use-system-libs
it works fine.
please anyone help me. (my systeme d'exploitation is Linux ubuntu)
I don't know how to make it run from the android studio.
Upvotes: 1
Views: 2274
Reputation: 26
You can set the environment variable ANDROID_EMULATOR_USE_SYSTEM_LIBS=1 to enforce the same behaviour as the -use-system-libs option.
One easy way to do this is to copy the desktop file from /usr/share/applications/android-studio-canary.desktop to ~/.local/share/applications/android-studio-canary.desktop and change the "Exec" line like this:
Exec=env ANDROID_EMULATOR_USE_SYSTEM_LIBS=1 LANG=C android-studio-canary %f
(I also set LANG=C because with my local locale setting, floating point numbers in XML files are interpreted wrong)
Upvotes: 1