I tried to run the Android Studio 3 emulator on fresh installed Ubuntu 17.10 to test an app I'm working on. And I got this error in Android Studio Event Log:
libGL error: unable to load driver: i965_dri.so
AVD Emulator: Process finished with exit code -1
Solution:
Type in Terminal:
$ cd ~/Android/Sdk/emulator/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.bak
$ ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6
That's it!
Now my Android Studio 3 emulator is working again!
libGL error: unable to load driver: i965_dri.so
AVD Emulator: Process finished with exit code -1
Solution:
Type in Terminal:
$ cd ~/Android/Sdk/emulator/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.bak
$ ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6
That's it!
Now my Android Studio 3 emulator is working again!