time

Fix libGL error: unable to load driver: i965_dri.so

I have Android Studio 2.1.1 and updated mesa driver (11.2.1-1 -> 11.2.2-1).

This morning I got following error: libGL error: unable to load driver: i965_dri.so.

Solution:

# Arch Linux
mv ~/Android/Sdk/tools/lib64/libstdc++/libstdc++.so.6{,.bak}
mv ~/Android/Sdk/tools/lib64/libstdc++/libstdc++.so.6.0.18{,.bak}
ln -s /usr/lib/libstdc++.so  ~/Android/Sdk/tools/lib64/libstdc++/

I updated Android Emulator to 27.0.2 version today (27.12.2017) and got following error: libGL error: unable to load driver: i965_dri.so.

Solution:

# Arch Linux
mv ~/Android/Sdk/emulator/lib64/libstdc++/libstdc++.so.6{,.bak}
mv ~/Android/Sdk/emulator/lib64/libstdc++/libstdc++.so.6.0.19{,.bak}
ln -s /usr/lib/libstdc++.so  ~/Android/Sdk/emulator/lib64/libstdc++