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?
问题:
回答1:
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.
回答2:
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.
回答3:
Just before following above commands make sure you did download the emulator first.
回答4:
For me, what worked was to add
export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1
in my .profile and it worked without doing anything more.
回答5:
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