DEV Community

ochieng seth
ochieng seth

Posted on

Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`

I encountered this when trying to build my react native app on windows, also on my Mac and the solution(Mac) is.. open your command prompt and type

nano ~/.zsh_profile
Enter fullscreen mode Exit fullscreen mode

then add the following in the file and save

export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
Enter fullscreen mode Exit fullscreen mode

then still in the command prompt type

source $HOME/.zsh_profile
Enter fullscreen mode Exit fullscreen mode

there you go.
My twitter

Discussion (0)