Android SDK will be installed in $HOME/.local/share/android/sdk
.
On page https://developer.android.com/studio/index.html#downloads,
got to section "Get just the command line tools" at page end and download Linux package.
With last edition of this document, this is commandlinetools-linux-8092744_latest.zip
.
export ANDROID_SDK_ROOT=$HOME/.local/share/android/sdk
export ANDROID_NDK_HOME=$ANDROID_SDK_ROOT/ndk-bundle
mkdir -p $ANDROID_SDK_ROOT