ubuntu下android studio启动模拟器Emulator: libGL error: unable to load driver: i965_dri.so

针对Emulator Error:libGL error: unable to load driver: i965_dri.so,报错如下:

上午11:45 Emulator: libGL error: unable to load driver: i965_dri.so  

上午11:45 Emulator: libGL error: driver pointer missing

上午11:45 Emulator: libGL error: failed to load driver: i965

上午11:45 Emulator: libGL error: unable to load driver: i965_dri.so

上午11:45 Emulator: libGL error: driver pointer missing

上午11:45 Emulator: libGL error: failed to load driver: i965

上午11:45 Emulator: libGL error: unable to load driver: swrast_dri.so

上午11:45 Emulator: libGL error: failed to load driver: swrast

上午11:45 Emulator: X Error of failed request:  BadValue (integer parameter out of range for operation)

上午11:45 Emulator: Major opcode of failed request:  155 (GLX)

上午11:45 Emulator: Minor opcode of failed request:  24 (X_GLXCreateNewContext)

上午11:45 Emulator: Value in failed request:  0x0

上午11:45 Emulator: Serial number of failed request:  64

上午11:45 Emulator: Current serial number in output stream:  65

上午11:45 Emulator: Process finished with exit code 1

很明显是i965_dri.so文件的锅
解决方案:

cd ~/Android/Sdk/emulator/lib64/libstdc++
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./libstdc++.so.6

如果中间说链接已存在,就用命令

rm ./libstdc++.so.6

删除
再执行上述命令,重启模拟器即可

猜你喜欢

转载自blog.csdn.net/weixin_38312031/article/details/79740576