Open the .dmg file and drag Android Studio to your Applications folder.
Download the .zip file for Windows, Mac, or Linux. how to download android sdk tools
To use SDK commands like adb or sdkmanager from your terminal, you must add them to your system’s path. Search for "Edit the system environment variables." Click Environment Variables . Open the
Go to the Android Studio downloads page and scroll to the "Command line tools only" section. Search for "Edit the system environment variables
Android Studio will download the components. This may take a few minutes depending on your internet speed. Method 2: Downloading Command Line Tools Only
To make sure everything is working, open your terminal or command prompt and type: sdkmanager --version
If you don't want the full Android Studio IDE, you can download the bare-bones tools.