Need to export ANDROID_HOME on a MacOS machine?
You have installed the SDK via Android Studio?
vim ~/.bash_profile
Add:
export ANDROID_HOME=/Users/$USER/Library/Android/sdkexport…
export ANDROID_HOME=/Users/$USER/Library/Android/sdkexport