I’m using Arch Linux as my operating system on my laptop. So installing an Android development platform is a bit different. One of the problems I encountered is when my Android Virtual Device won’t load due to a missing driver.
libGL error: unable to load driver: i965_dri.so
A quick search led me to this forum post. Apparently, Google is using a libstdc++ that is incompatible with my system’s Intel driver. The solution is to create a softlink of my system’s libstdc++ in my Android installation’s
I first track down my installation folder and rename the library file.
$ cd /opt/android-sdk/tools/lib64/libstdc++ $ mv libstdc++.so.6 libstdc++.so.6.bak
Then I create the link.
$ ln -sf /usr/lib/libstdc++.so.6 ./libstdc++.so.6
This now solves the problem of the missing library. The AVD now loads without problems.