2017-11-10 93 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,並且工作正常。