无法在 Linux (Ubuntu 15.10) 上启动模拟器 [英] Cannot launch emulator on Linux (Ubuntu 15.10)

查看:23
本文介绍了无法在 Linux (Ubuntu 15.10) 上启动模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试启动模拟器,但它输出到日志中:

I try to launch emulator but it outputs into log:

libGL error: unable to load driver: r600_dri.so 
libGL error: driver pointer missing 
libGL error: failed to load driver: r600 
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:  47
Current serial number in output stream:  46 
libGL error: unable to load driver: r600_dri.so 
libGL error: driver pointer missing 
libGL error: failed to load driver: r600 
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:  47   
Current serial number in output stream:  46 
libGL error: unable to load driver: r600_dri.so 
libGL error: driver pointer missing 
libGL error: failed to load driver: r600
libGL error: unable to load driver: swrast_dri.so 
libGL error: failed to load driver: swrast 
X Error of failed request:  BadValue (integer parameter out of range for operation)   
Major opcode of failed request:  155 (GLX)   
Minor opcode of failed request:  24 (X_GLXCreateNewContext)   
Value in failed request:  0x0   
Serial number of failed request:  33   
Current serial number in output stream:  34 
QObject::~QObject: Timers cannot be stopped from another thread emulator: WARNING: Increasing RAM size to 1GB

如何解决?我阅读了有类似错误的主题,但这对我没有帮助.

How to fix it? I read topics with similar errors but it doesn't help me.

推荐答案

看看

https://code.google.com/p/android/问题/详细信息?id=197254

特别是项目#3 和#19.这是一种解决方法,而不是真正的解决方案,但它让我再次行动起来.您必须调整以下命令:

in particular items #3 and #19. This is a workaround rather than a true solution, but it got me moving again. You will have to adjust the command for:

  • libstdc++.so.6 文件在您的系统上的位置 - 我使用 locate libstdc++.so.6 来找到它
  • 模拟器可执行文件的路径
  • 您的模拟器的名称
  • the location of the libstdc++.so.6 file on your system - I used locate libstdc++.so.6 to find this
  • the path to the emulator executable
  • the name of your emulator

所以我的命令是

LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libstdc++.so.6' ~/Android/Sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_5_API_21

这会启动模拟器,您可以在运行应用时在设备选择器"对话框中选择它.

This then launches the emulator, and you can select it in the 'Device Chooser' dialogue when you run your app.

这篇关于无法在 Linux (Ubuntu 15.10) 上启动模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆