set ANDROID_SDK_ROOT to that location. You may also want to add it to your PATH environment variable. mac code example
Example: 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