Fix Android Emulator libGl error on linux

If you are linux user like me you will probably encounter libGl error when you try to run your app in android emulator and it will probably look something like this image.

I know it looks scary with all those error notifications popping around but there is fairly simple solution to this. Error is caused by library shipped with android studio and it can be solved by going around it and using included with your linux system. Let’s open our terminal and fix this fast.

ln -sf /usr/lib/ ~/Android/Sdk/emulator/lib64/libstdc++/

I simply created symlink to system and android emulator will now use system file instead of the one android studio is shipped with. Restart your android studio and launch app in emulator to see it working finally.

Share with your friends