Environment Variable Not Set on Mac ($ANDROID_HOME not set on Mac) on Mac Catalina
1 min readMar 4, 2020
For newly created accounts Catalina uses zsh
instead of bash
, so you need to add the lines to the appropriate file (probably ~/.zshenv
to make sure it's read in all cases).
For example,
nano $HOME/.zshenv
Add these lines
export ANDROID_HOME=$HOME/Library/Android/sdk/
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
And
source $HOME/.zshenv