Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio on Ubuntu 17.10 : The emulator process for AVD Nexus_5_API_22 was killed

I have reinstalled android-studio 3.0 on my ubuntu. All process installation was ok. Now, I have created a new project. But when I try to run, I get this on the console :

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

Any Idea, please?

Update Here is Emulator logs:

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)

Update 2

I am having the same issue on to different ubuntu 17.10 computer. I use this tutorial for installation

like image 312
dmx Avatar asked Nov 10 '17 20:11

dmx


People also ask

Why is my AVD not working?

In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled". Go to your BIOS settings and enable Hardware Virtualization. 3) Restart Android Studio and then try to start the AVD again.

Why is my AVD Manager not working?

SDK Build Tools are not installed If it fails then you may have to install it again. You look at the build tab at the bottom of the screen, it will display the error message and option to install the Build tools. Install it and you should be able to see the AVD Manager. Another way is to go to the SDK Manager.

How do I run AVD on Ubuntu?

Open Android Studio with a valid studio project (if you don't have one, simply create one empty). After you've your project open, go to Tools => Android => AVD Manager . Note that this menu does not appear if you don't have a valid Android Studio project open.


2 Answers

The path to libstdc++ has changed in Ubuntu 17.10. Try the following:

$ 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

You should be able to launch the emulator from within Android Studio now.

like image 101
nessus_pp Avatar answered Nov 01 '22 23:11

nessus_pp


On Ubuntu 17.10 with Android Studio 3.01. I renamed the library folder ~/Android/Sdk/emulator/lib64/lib/libstdc++ to libstc++.OLD and worked fine.

like image 31
Murad Avatar answered Nov 02 '22 00:11

Murad