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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s