open -a TextEdit ~/.bash_profile
brew install gradle
Check Env
echo $JAVA_HOME
set the Env
export JAVA_HOME=$(/usr/libexec/java_home)
Check Env
echo $ANDROID_HOME
Set Env
export ANDROID_HOME=~/Library/Android/sdk
echo $GRADLE_HOME
export GRADLE_HOME=/usr/local/Cellar/gradle/4.8.1/bin
source ~/.bash_profile
export PATH=$PATH:/usr/local/git/bin:/usr/local/bin
open -a TextEdit ~/.bash_profile
Ref
https://ionicframework.com/docs/developer-resources/platform-setup/mac-setup.html