Skip to content

Instantly share code, notes, and snippets.

@TuHuynhVan
Created April 17, 2022 16:47
Show Gist options
  • Save TuHuynhVan/92c79f3a20f410aeafdace3a890c239f to your computer and use it in GitHub Desktop.
Save TuHuynhVan/92c79f3a20f410aeafdace3a890c239f to your computer and use it in GitHub Desktop.
1. Open terminal then type: touch ~/.bash_profile
2. Open the ~/.bash_profile by Finder or using vi command and put below contents:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home
export ANDROID_HOME=~/Library/Android/sdk
export ANDROID_SDK_ROOT=~/Library/Android/sdk
export ANDROID_SDK_HOME=~/Library/Android/sdk
export PATH=$PATH:$JAVA_HOME/bin
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/emulator
export MAVEN_HOME=~/automation-libs/maven-3.6.3
export M2_HOME=~/automation-libs/maven-3.6.3
export PATH=$PATH:$MAVEN_HOME/bin
3. SAVE
4. Open ~/.zshrc, on top of the file, add this line
source ~/.bash_profile
5. SAVE
6. Close all terminal windows
7. Open terminal windows
8. Type: echo $ANDROID_HOME
Then tell me the output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment