android驱动加载错误,Android模拟器 – 无法加载驱动程序

在Ubuntu上运行,我收到此错误:

Cannot launch AVD in emulator.

Output:

libGL error: unable to load driver: i965_dri.so

libGL error: driver pointer missing

libGL error: failed to load driver: i965

libGL error: unable to load driver: swrast_dri.so

libGL error: failed to load driver: swrast

X Error of failed request: GLXBadContext

Major opcode of failed request: 155 (GLX)

Minor opcode of failed request: 6 (X_GLXIsDirect)

Serial number of failed request: 55

Current serial number in output stream: 54

平台工具是最新的.

模拟器图片使用https://dl.google.com/android/repository/sys-img/google_apis/x86_64-24_r08.zip,它位于Android N上.

更新(2016年12月2日):@Sébastien的解决方案不再有效但给出:

Cannot launch AVD in emulator.

Output:

failed to create drawable

getGLES2ExtensionString: Could not create GLES 2.x Pbuffer!

Failed to obtain GLES 2.x extensions string!

Could not initialize emulated framebuffer

emulator: Listening for console connections on port: 5554

emulator: Serial number of this emulator (for ADB): emulator-5554

emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.

emulator: WARNING: ./android/metrics/metrics_reporter.cpp:142: Failed to get a writable, unused path for metrics. Tried: /home/me/.android/avd/metrics/metrics.17386.yogibear

如果我禁用基于GPU的渲染并切换到基于软件的GL图形,则会出现此运行时错误:

Firebase API initialization failure.

DeadSystemException: The system died; earlier logs will point to the root cause

FATAL EXCEPTION: main

Process: com.whatever.mobile, PID: 4501

DeadSystemException: The system died; earlier logs will point to the root cause

解决方法:

有同样的问题,我的修复是设置以下env变量:

export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1

在我的情况下,我把它放在〜/ .bashrc中.

随着发送,我像往常一样启动模拟器,即从命令行:

$emulator -avd Nexus_4_API_23

标签:android,linux,android-emulator

来源: https://codeday.me/bug/20190929/1829860.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值