Skip to content

Instantly share code, notes, and snippets.

@tuliocll
Created October 24, 2022 16:50
Show Gist options
  • Save tuliocll/bbc276c0739934383a59f8933a84caa1 to your computer and use it in GitHub Desktop.
Save tuliocll/bbc276c0739934383a59f8933a84caa1 to your computer and use it in GitHub Desktop.
Open Android emulator without Android Studio Mac or Linux

Android emulator on terminal

Find the Android SDK path, here is a link to help you find it. For Mac is some like: /Users/<yout-user-name>/Library/Android/sdk"

Open the .rc file in your favorite editor:

# if you use ZSH
nano ~/.zshrc
# if you use BASH
nano ~/.bashrc

Add this line at the final of the file(your Android SDK path with a /emulator:$PATH at the end):

  export PATH="/Users/<your-user-name>/Library/Android/sdk/emulator:$PATH"

Save the file and go back to the terminal and reload the new configuration:

source ~/.zshrc
#or
source ~/.bashrc

Now you can get it running from any location:

emulator -avd EmulatorName

To see all available emulators just run: emulator -list-avds.

Like this? Check my blog! Follow me on Twitter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment