简体   繁体   English

模拟器无法从Android Studio中的AVD Manager启动

[英]Emulator Cannot start from AVD Manager in android studio

Emulator Cannot start from AVD Manager in ubuntu using android studio. 模拟器无法使用Android Studio从ubuntu中的AVD Manager启动。 But when I type following code in terminal emulator is running. 但是,当我在终端仿真器中键入以下代码时,该代码正在运行。

Can any one help me to solve this problem to run emulator form AVD Manage. 谁能帮助我解决此问题并从AVD Manage运行模拟器。

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

When I click on avd Manager a Dialog is shown with following message Dialog Box Message Is: 当我单击avd Manager时,将显示一个对话框,其中显示以下消息对话框消息为:

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

Run Tab Error Message is: 运行选项卡错误消息是:

/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

The issue is related to libstdc++.so.6 go to Android sdk and can be resolved with the following command: 该问题与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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM