save android studio home bash_profile 1

save android studio home bash_profile

nano ~/.bash_profile 

export ANDROID_HOME=/YOUR_PATH_TO/android-sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH

source ~/.bash_profile
echo $ANDROID_HOME

Here is what the above code is Doing:
1. Open the bash profile in nano
2. Add the ANDROID_HOME variable to the bash profile
3. Add the platform-tools and tools directories to the PATH variable
4. Source the bash profile
5. Print the ANDROID_HOME variable to the terminal to make sure it’s set correctly

Similar Posts