f you are using macOS, add both Android SDKemulator
andtools
directories to the path:
Step 1:In my case the order was important, firstemulator
and thentools
.
export ANDROID_SDK=$HOME/Library/Android/sdk
export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH
Step 2:Reload you.bash_profile
Or.bashrc
depending on OS
Step 3:Get list of emulators available:$emulator -list-avds
Step 4:Launch emulator from the command line and Replaceavd
with the name of your emulator$emulator @avd
Don’t forget to add the@
symbol.
This was tested with macOS High Sierra 10.13.4 and Android Studio 3.1.2.