Created
April 17, 2022 16:47
-
-
Save TuHuynhVan/92c79f3a20f410aeafdace3a890c239f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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