2017-11-10 52 views
6

我在我的ubuntu上重新安装了android-studio 3.0。所有进程安装都没问题。现在,我创建了一个新项目。但是,当我尝试运行,我得到这个在控制台上:Ubuntu 17.10上的Android工作室:AVD Nexus_5_API_22的模拟器进程死亡

11/10 21:10:19: Launching app 
Error while waiting for the device: The emulator process for AVD Nexus_5_API_22 was killed. 

enter image description here

什么想法,请?

更新 这里是模拟器日志:

Executing tasks: [:app:assembleDebug] 
Emulator: libGL error: unable to load driver: i965_dri.so 
Emulator: libGL error: driver pointer missing 
Emulator: libGL error: failed to load driver: i965 
Emulator: libGL error: unable to load driver: i965_dri.so 
Emulator: libGL error: driver pointer missing 
Emulator: libGL error: failed to load driver: i965 
Emulator: libGL error: unable to load driver: swrast_dri.so 
Emulator: libGL error: failed to load driver: swrast 
Emulator: X Error of failed request: BadValue (integer parameter out of range for operation) 
Emulator: Major opcode of failed request: 155 (GLX) 
Emulator: Minor opcode of failed request: 24 (X_GLXCreateNewContext) 
Emulator: Value in failed request: 0x0 
Emulator: Serial number of failed request: 39 
Emulator: Current serial number in output stream: 40 
Emulator: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) 

更新2

我有不同的Ubuntu 17.10的计算机上的相同的问题。我使用this安装教程

+0

尝试创建一个新的仿真器 – Zoe

+0

[无法在Linux上启动模拟器(Ubuntu 15.10)](https://stackoverflow.com/questions/35911302/cannot-launch-emulator-on-linux-ubuntu-15- 10) – AesSedai101

回答

9

在Ubuntu 17.10中已更改libstdc++的路径。请尝试以下操作:

$ cd ~/Android/Sdk/emulator/lib64/libstdc++ 
$ mv libstdc++.so.6 libstdc++.so.6.bak 
$ ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6 

您应该能够立即从Android Studio中启动模拟器。

0

在Ubuntu 17.10上使用Android Studio 3.01。我将库文件夹〜/ Android/Sdk/emulator/lib64/lib/libstdC++重命名为libstC++。OLD,并且工作正常。