Last active
October 19, 2020 08:48
-
-
Save carlosgub/dc7fd1d2bb5afa8ded1c43e542402f69 to your computer and use it in GitHub Desktop.
Export Android Variables to the system
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
//MacOS Catalina and After or Linux that work with zsh shell | |
//Create the file | |
Start up Terminal | |
Type "cd ~/" to go to your home folder | |
Type "touch .zprofile" to create your new file. | |
Edit .zprofile with your favorite editor or with "vi .zprofile" to open it with VIM | |
//Put this on the .bash_profile file | |
export ANDROID_HOME=~/Library/Android/sdk/ | |
export PATH=$PATH:$ANDROID_HOME/platform-tools | |
//Save | |
//Execute the file on the terminal | |
source .zprofile | |
//MacOS before Catalina or linux that work with bash (.sh) | |
//Create the file | |
Start up Terminal | |
Type "cd ~/" to go to your home folder | |
Type "touch .bash_profile" to create your new file. | |
Edit .bash_profile with your favorite editor or with "vi .bash_profile" to open it with VIM | |
//Put this on the .bash_profile file | |
export ANDROID_HOME=~/Library/Android/sdk/ | |
export PATH=$PATH:$ANDROID_HOME/platform-tools | |
//Save | |
//Execute the file on the terminal | |
source .bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment