set ANDROID_HOME to that location. You may also want to add it to your PATH environment variable ubunutu code example
Example: android_home ubuntu
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools