An Error When Using Android Emulator in Arch

Source:

The hardware acceleration of the Android emulator can’t run with DRI3 in Linux, so we need to disable DRI3.

I’ve been confused about this problem for a long time. Even though I saw its running log by using ADB and Android Studio, it couldn’t show any problems about this. It only shows errors.

sh

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:  49
  Current serial number in output stream:  48

Thanks to the blogger Mike’s hint, we only need to use LIBGL_DEBUG=verbose. This will show the problems, and its errors belong to DRI3.

Thanks for your reading, have a nice day!