美文网首页
Ubuntu 16.04 下 Android AVD 无法启动的

Ubuntu 16.04 下 Android AVD 无法启动的

作者: duyi324 | 来源:发表于2018-04-27 10:38 被阅读0次

    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模式即可。

    相关文章

      网友评论

          本文标题:Ubuntu 16.04 下 Android AVD 无法启动的

          本文链接:https://www.haomeiwen.com/subject/hwcblftx.html