Skip to content

Instantly share code, notes, and snippets.

@diegorribeiro
Created May 16, 2023 11:47
Show Gist options
  • Save diegorribeiro/9c025199e964e3a0d0d5fb6fa238d2e2 to your computer and use it in GitHub Desktop.
Save diegorribeiro/9c025199e964e3a0d0d5fb6fa238d2e2 to your computer and use it in GitHub Desktop.
Zsh environment for Android SDK

Goto zsh terminal and run these steps bellow:

Create .zshenv file

$ touch ~/.zshenv

Run vim and edit the .zshenv file

$ vim ~/.zshenv

Copy e Paste these commands in zshenv file

$ export ANDROID_HOME=/Users/#YOUR_USER_HERE/Library/Android/sdk

$ export PATH=$ANDROID_HOME/tools:$PATH

$ export PATH=$ANDROID_HOME/platform-tools:$PATH

$ export PATH=$PATH:$ANDROID_HOME/emulator/

Save and Close vim

esc + :wq

Run source

$ source ~/.zshenv

Test adb, emulator and others

$ adb devices $ emulator -list-avds $ adb start-server $ adb kill-server

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