2016-11-24 164 views
1

模拟器无法使用android studio从ubuntu中的AVD Manager启动。但是当我在终端仿真器中键入以下代码时正在运行。模拟器无法从android studio中的AVD管理器启动

任何人都可以帮我解决这个问题,运行模拟器形式AVD管理。

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

当我在AVD管理单击对话框显示与以下消息 对话框消息:

Cannot launch AVD in emulator. 
Output: 
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: 49 
Current serial number in output stream: 48 
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: 49 
Current serial number in output stream: 48 
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 opc 

运行选项卡错误消息是:

/home/mahmud/Android/Sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_4_API_23 
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: 49 
Current serial number in output stream: 48 
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: 49 
Current serial number in output stream: 48 
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 
+0

为什么你不使用真正的设备或genymotion模拟器? –

+0

真正的设备可以出现这个错误? –

回答

2

的问题是与libstdC++相关。so.6 转到Android sdk并且可以使用以下命令解决:

cd ~/...../sdk/tools/lib64/libstdc++ 
mv libstdc++.so.6 libstdc++.so.6_OLD 
ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6 
+0

谢谢Basi的回答。我的问题是使用这些命令解决。非常感谢 –