Environment Variable Not Set on Mac ($ANDROID_HOME not set on Mac) on Mac Catalina

Cing Sian Dal
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

--

--

Cing Sian Dal
Cing Sian Dal

Written by Cing Sian Dal

Don’t follow me. I wrote junks here. Follow me on Twitter instead.

Responses (1)