Ubuntu 16.04 下 Android AVD 无法启动的问题

Ubuntu 16.04 环境下,在Android AVD中创建模拟器可以创建成功,但是启动的时候会报错无法启动,错误信息:

Executing tasks: [:app:assembleDebug]
Emulator: libGL error: unable to load driver: nouveau_dri.so
Emulator: libGL error: driver pointer missing
Emulator: libGL error: failed to load driver: nouveau
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

参考Cannot launch emulator on Linux (Ubuntu 15.10)一文中的回复,猜测可能是显卡驱动的问题:

Use "Software" in the Emulated Performance Graphics option, in the AVD settings. Very simple solution.

于是去AVD设置里面,修改如下设置:

修改图形设置

将图形设置由默认的Automatic修改为Software模式即可。

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容