Last updated on 10 Apr 2019
Setting ANDROID_HOME Enviromental Variable on Ubuntu
Open your terminal. To open it with shortcut keyboard just hold CTRL + ALT + T.
Now, we’ll create a new file .bash_profile with text editor nano.
Type code below in terminal
nano ~/.bash_profile
Add code below :
export ANDROID_HOME=/YOUR_PATH_TO/android-sdk export PATH=$ANDROID_HOME/platform-tools:$PATH export PATH=$ANDROID_HOME/tools:$PATH
Check it for ensure the script is working.
source ~/.bash_profile adb