Download file `jdk-14.0.2_osx-x64_bin.dmg` and install
Find type of shell
echo $SHELL
Find JAVA location & version
/usr/libexec/java_home
open env file
vi ~/.zshrc
and to file
# env
if [[ -e /usr/libexec/java_home ]]; then
export JAVA_HOME=`/usr/libexec/java_home`
fiexport PATH=$JAVA_HOME/bin:$PATH
reload terminal or
source ~/.zshrc
Android Install
Go to settings preferences, search for “sdk” find location and set
export ANDROID_SDK_ROOT=~/Library/Android/sdk
set another
export PATH=${PATH}:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools