Install Java & Android on macos Big Sur

Girish
May 23, 2022

--

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`
fi
export 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

--

--

Girish
Girish

No responses yet