Gustavomcls
Gustavomcls

Reputation: 1655

Android Studio 2.3 Ubuntu 16.10 emulator do not start

Using Android Studio 2.3 and Ubuntu 16.10 the emulator did not start. Message: waiting emulator come on line. How can I configure to emulator start?

Upvotes: 26

Views: 29580

Answers (6)

Neena Tikoo
Neena Tikoo

Reputation: 1

For me what worked was- 1- Select all x86 images in the respective phone model. Go to "show package details" option and enusre the x86 image options are selected for the respective chosen model. 2- Also make sure no other applications are open at the backend not even the browser. Because even that is leading to hang may be due to the configuration of the system that I have.

Upvotes: 0

csotiriou
csotiriou

Reputation: 5780

For me, what worked was to add

export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1

in my .profile and it worked without doing anything more.

Upvotes: 1

Arvind M V
Arvind M V

Reputation: 11

You can always try to kill the adb server first before starting it up again. It solves the problem most of the time! Terminal commands:

adb kill-server
adb start-server

Upvotes: 0

Jason McVetta
Jason McVetta

Reputation: 1419

Instead of making changes to APT-managed system libraries (eek!), you can just add the following at the top of your bin/studio.sh file:

# Preload shared library required by Android emulator
export LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libstdc++.so.6'

Tested on Ubuntu 16.10 with Android Studio 2.3.3.

Upvotes: 23

Prashant Abdare
Prashant Abdare

Reputation: 2455

Just before following above commands make sure you did download the emulator first.enter image description here

Upvotes: 8

Gustavomcls
Gustavomcls

Reputation: 1655

Source: https://cialu.net/solve-android-studio-avd-issue-with-ubuntu-16-10/

sudo apt-get install lib64stdc++6:i386

sudo apt-get install mesa-utils

(look for the path of the sdk)

cd YOURPATH/Android/Sdk/emulator/lib64

mv libstdc++/ libstdc++.bak

ln -s /usr/lib64/libstdc++.so.6 libstdc++

Finally, run your application again using emulator.

Upvotes: 105

Related Questions