错误提示
Emulator: libGL error: unable to load driver: i965_dri.so
Emulator: libGL error: driver pointer missing
Emulator: libGL error: failed to load driver: i965
Emulator: libGL error: unable to load driver: i965_dri.so
Emulator: libGL error: driver pointer missing
Emulator: libGL error: failed to load driver: i965
Emulator: libGL error: unable to load driver: swrast_dri.so
Emulator: libGL error: failed to load driver: swrast
Emulator: X Error of failed request: BadValue (integer parameter out of range for operation)
Emulator: Major opcode of failed request: 156 (GLX)
Emulator: Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Emulator: Value in failed request: 0x0
Emulator: Serial number of failed request: 64
Emulator: Current serial number in output stream: 65
Emulator: Process finished with exit code 1
解决方案
1.下载需要的包
sudo apt-get install lib64stdc++6:i386
sudo apt-get install mesa-utils
2.进入 SDK 目录(我是两个目录都备份链接了,不过弄第二个目录的时候才成功的)
cd YOUPAHT/Android/Sdk/tools/lib64
//or
cd YOUPAHT/Adnroid/Sdk/emulator/lib64
mv libstdc++/ libstdc++.bak
ln -s /usr/lib64/libstdc++.so.6 libstdc++
3.重新启动虚拟机