Android Virtual device emulator not starting up or very slow with error sh: 1: glxinfo: not found

Android Virtual device emulator not starting up or very slow with error sh: 1: glxinfo: not found takes a very long time to start the emulator and finally returns with an error.

To resolve the above error, do following:
$ sudo apt-get install lib64stdc++6 <enter>

Then create a link to the new 64 bit libraries that were installed by the above command.

$ cd ~/android-sdk-linux/tools/lib64/libstdc++ <enter>
$ mv libstdc++.so.6 libstdc++.so.6.bak <enter>
$ ln -s /usr/lib64/libstdc++.so.6 ~/android-sdk-linux/tools/lib64/libstdc++ <enter>
$ sudo apt-get install mesa-utils <enter>

Restart Android Studio and the emulator should start up now.

Leave a Reply

  

  

  

Blue Captcha Image
Refresh

*

March 2019
M T W T F S S
« Feb    
 123
45678910
11121314151617
18192021222324
25262728293031