Android模拟器 – 无法加载驱动程序

Android模拟器 – 无法加载驱动程序,第1张

概述在Ubuntu上运行,我收到此错误:CannotlaunchAVDinemulator.Output:libGLerror:unabletoloaddriver:i965_dri.solibGLerror:driverpointermissinglibGLerror:failedtoloaddriver:i965libGLerror:unabletoloaddriver:swrast_dri.solibGLerror:fail

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

Cannot launch AVD in emulator.Output:libGL error: unable to load driver: i965_dri.solibGL error: driver pointer missinglibGL error: Failed to load driver: i965libGL error: unable to load driver: swrast_dri.solibGL error: Failed to load driver: swrastX 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 drawablegetGLES2ExtensionString: Could not create GLES 2.x Pbuffer!Failed to obtain GLES 2.x extensions string!Could not initialize emulated framebufferemulator: Listening for console connections on port: 5554emulator: Serial number of this emulator (for ADB): emulator-5554emulator: 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 causeFATAL 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 BUG跟踪器中跟踪的常见问题:https://code.google.com/p/android/issues/detail?id=197254

总结

以上是内存溢出为你收集整理的Android模拟器 – 无法加载驱动程序全部内容,希望文章能够帮你解决Android模拟器 – 无法加载驱动程序所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1101144.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存