错误提示:
下午2:55 Emulator: libGL error: unable to load driver: i965_dri.so
下午2:55 Emulator: libGL error: driver pointer missing
下午2:55 Emulator: libGL error: failed to load driver: i965
下午2:55 Emulator: libGL error: unable to load driver: i965_dri.so
下午2:55 Emulator: libGL error: driver pointer missing
下午2:55 Emulator: libGL error: failed to load driver: i965
下午2:55 Emulator: libGL error: unable to load driver: swrast_dri.so
下午2:55 Emulator: libGL error: failed to load driver: swrast
下午2:55 Emulator: X Error of failed request: BadValue (integer parameter out of range for operation)
下午2:55 Emulator: Major opcode of failed request: 156 (GLX)
下午2:55 Emulator: Minor opcode of failed request: 24 (X_GLXCreateNewContext)
下午2:55 Emulator: Value in failed request: 0x0
下午2:55 Emulator: Serial number of failed request: 64
下午2:55 Emulator: Current serial number in output stream: 65
下午2:55 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. 重新启动虚拟机