DEV Community

ochieng seth
ochieng seth

Posted on

3 2

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

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs