I just upgraded my android studio from 1.5 to 2.0.And now I am facing some weird bug when I try to start Emulator. I use Ubuntu 15.10 OS
Android monitor returns this
I had the same issue on an Arch Linux box. I had to do two things to solve all the issues:
Install mesa-demos
. This is the Arch Linux package which contains glxinfo
:
$ sudo pacman -S mesa-demos
Run the emulator with the -use-system-libs
flag:
$ emulator -avd -use-system-libs
To enable this behavior in Android Studio, I set the ANDROID_EMULATOR_USE_SYSTEM_LIBS
enviornment variable in ~/.zshrc
.
export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1
You can also set this in ~/.profile
or ~/.bashrc
. In all of these cases, you will have to start Android Studio from the command-line. Alternatively, you can set it in ~/.pam_environment
to be able to start Android Studio from a desktop launcher:
ANDROID_EMULATOR_USE_SYSTEM_LIBS=1