Gabor Gabor - 1 month ago 71
Linux Question

Android emulator in Yakkety Yak (Ubuntu 16.10)

I'm getting this error:

Cannot launch AVD in emulator.
Output:
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 55
Current serial number in output stream: 54


Platform-tools is the latest.

Emulator image uses
https://dl.google.com/android/repository/sys-img/google_apis/x86_64-24_r08.zip
and it's on Android N.

Is there any workaround, other than disabling GPU based rendering?

Answer

I've just face the same error, and simply deleting $ANDROID_HOME/tools/lib64/libstdc++/* worked for me. libstdc++ version shipped with 16.10 (6.0.22) is greater than the one shipped with the sdk tools (6.0.18), and I suppose it creates conflicts with other libraries.

Comments