Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties fil code example
Example: add android sdk root to path
export ANDROID_HOME=~/Library/Android/sdk
export ANDROID_SDK_ROOT=~/Library/Android/sdk
export ANDROID_AVD_HOME=~/.android/avd