With 25rc1 of the SDK tools I am having a problem when starting the emulators from $PATH
➜ ~ which emulator
/home/ligi/bin/android-sdk/tools/emulator
➜ ~ emu
I had the Android Emulator
up to date under SDK Tools
. But I was still getting the error. Adding the following line to ~/.bash_profile
solved the problem for me:
PATH=$ANDROID_HOME/emulator:$PATH
Do not use $ANDROID_HOME/tools/emulator
, it will cause error when you launch every time unless you change dir.
There is a another emulator in $ANDROID_HOME/emulator
.It is a good choice
In Virtual device configuration, set Emulated performance to Software GLES 2.0
In Ubuntu 19.10!
With the environment variables already configured ($ANDROID_HOME), you should be able to list the AVDs, but if you are unable to start the AVD, do the following:
# Check the AVD target name
emulator -list-avds
# But to start do:
$ANDROID_HOME/emulator/emulator @avd_name
or
/home/$USER/Android/Sdk/emulator/emulator @avd_name
I encounter this one in android studio 2.3 which use new path for the emulator so try the following:
do not use emulator executable in the: sdk-path/tools/ directory but instead use the one found in the : sdk-path/emulator/
and also remove or rename the emulator found in the sdk-path/tools directory.
and because android sdk shipped with it's own libstdc++.so.6 you need to do the following to avoid the libGL error:
cd $ANDROID_HOME/emulator/lib64/libstdc++
mv libstdc++.so.6 libstdc++.so.6.bak
ln -s /usr/lib64/libstdc++.so.6 $ANDROID_HOME/emulator/lib64/libstdc++
Try this, it work for me on Windows.
Tools -> Android -> SDK Manager -> SDK Tools -> Android Emulator
Then click on Apply.