2016-11-24 159 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的回答。我的問題是使用這些命令解決。非常感謝 –