Solve Android Studio AVD issue with Ubuntu 16.10

Android Studio rants unable to load driver and AVD doesn’t start

Android Studio environment has a lot of built-in parts and one of the most useful is Android Virtual Device Emulator. It helps you to test your applications in a easy way and without using a real device. Latest revision of Android Studio has also a very performant emulator system.

While using it on Fedora is a very charming experience, on the new Ubuntu 16.10 some issues arrived on board.

Nothing painful, but if you get:

Cannot launch AVD in emulator.
libGL error: unable to load driver:
libGL error: driver pointer missing

or something similar, you’re unable to work with the Android Emulator Device.

Android Studio AVD on Linux Ubuntu 16.10

It’s a libGL error and libstdc++ issue. Cannot launch AVD in emulator

It’s a know bug and you can easily beat it with some simple steps.

I have tested this solution on a Ubuntu 16.10 64bit

First, install some packages and libs:

$ sudo apt-get install lib64stdc++6:i386

$ sudo apt-get install mesa-utils

Second, tweak some links:

$ cd YOURPATH/Android/Sdk/tools/lib64
$ mv libstdc++/ libstdc++.bak
$ ln -s /usr/lib64/  libstdc++

Third, relaunch your AVD device and test it.

Alternative solution, available only by terminal is to launch emulator with:

$ emulator -use-system-libs -avd YOUR_VIRTUAL_DEVICE_NAME

That’s all. Enjoy it!

  • Manu Babu

    This works well , thanks a lot sir 🙂

    • You’re welcome!

  • Sébastien Risler


    Thank you for help. However I can’t find YOURPATH/Android/Sdk/tools/lib64. However I find YOURPATH/Android/Sdk/emulator/lib64. But it still not work for me.

    My problem may not be the same: I can see the progress bar “starting AVD” going to the end, but then nothing shows up. Thank you for any help