Use the SDK Tools link only if you need a headless environment (e.g., GitHub Actions, Jenkins, Docker). For learning Android development, install Android Studio—it will automatically manage the SDK tools for you. Part 7: How to Keep Your SDK Tools Updated Once you have used the official link to download the tools, staying updated is easy:
mkdir -p ~/Android/Sdk unzip commandlinetools-linux-*.zip -d ~/Android/Sdk After extraction, you will have a folder named cmdline-tools . Inside that, you must create a subdirectory named latest (or tools for compatibility). The recommended structure is:
Introduction If you are stepping into the world of Android development, you will quickly encounter a critical set of utilities known as the Android SDK Tools . Whether you want to debug an app on a physical device, compile code via the command line, or manage different Android platform versions, these tools are the engine under the hood. However, one of the most common pain points for beginners—and even seasoned developers—is finding the correct, official Android SDK Tools link .
| Feature | Standalone SDK Tools (via link) | Android Studio Bundle | | :--- | :--- | :--- | | | ~150 MB (plus downloads) | ~1-2 GB | | GUI | No (command line only) | Full IDE + Visual SDK Manager | | Best for | CI/CD, servers, lightweight setups | Daily development, learning, debugging | | Automatic updates | Manual ( sdkmanager --update ) | Via IDE prompts | | Emulator included | Yes (but you must download system images) | Yes (pre-integrated) |
# List all installed and available packages sdkmanager --list sdkmanager --update Upgrade specific components sdkmanager "platform-tools" "build-tools;35.0.0"
export ANDROID_HOME=$HOME/Android/Sdk export ANDROID_SDK_ROOT=$ANDROID_HOME export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin export PATH=$PATH:$ANDROID_HOME/platform-tools export PATH=$PATH:$ANDROID_HOME/emulator The tools downloaded from the link only include the sdkmanager and avdmanager . You must use them to download platform tools, build tools, and SDK platforms.
# Accept licenses yes | sdkmanager --licenses sdkmanager "platform-tools" Install a specific Android platform (e.g., API 34) sdkmanager "platforms;android-34" Install build tools sdkmanager "build-tools;34.0.0" Step 4: Verify Installation Check if ADB is working:
Run these commands: