Firstly, install git Then, run these commands
git clone https://github.com/evomagix/scripts
cd scripts
bash setup/android_build_env.sh
bash setup/install_android_sdk.shandroid_build_env.sh is for Ubuntu/Linux Mint/other distributions using the apt-get package manager.
Enjoy!
setup -> setup Android Build Environment / Android SDK.
THANK YOU akhilnarang for starting point for my personal preferences