Steps to install Android SDK Platform Tools

Steps to Install Android SDK Platform Tools

Android SDK Platform Tools provide essential command-line utilities for managing connected Android devices, running shell commands, flashing system images, and debugging applications. This toolkit is indispensable for developers working on app development, testing, and device management, offering a streamlined interface for low-level interactions with the Android operating system. These tools are included in the Android SDK and can be accessed through the command line. They are essential for developers working on Android apps and for those who need to interact with Android devices at a low level.

The Platform-Tools package provides a command-line interface (CLI) for tasks like:

  • Managing connected Android devices
  • Installing and uninstalling apps
  • Running shell commands on devices
  • Flashing device images (advanced users)
  • Debugging apps

This blog post equips you with the Platform Tools, a developer’s toolkit for interacting with Android devices and the operating system.

How to Install Android SDK Platform Tools on macOS

Install using Homebrew (Recommended)

Homebrew is a package manager for macOs.

brew install --cask android-platform-tools

If you don’t have Homebrew installed, you can install it by running the following command on your terminal:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Manual Installation

  1. Visit the official Android Developer website and download the latest Platform Tools:

Download Android SDK Platform Tools.

2. Extract the Downloaded ZIP file.

3. Move the Platform Tools to a Convenient Directory

  • Move the extracted platform-tools folder to a location where you’d like to store it. For example, you can move it to /usr/local to make it globally accessible.

To do this via the terminal, run:

sudo mv ~/Downloads/platform-tools /usr/local/platform-tools

4. Add Platform Tools to Your PATH

  • To make adb and other platform tools commands globally accessible, you need to add them to your PATHenvironment variable.

If you’re using the zsh shell (default on modern macOS), open your ~/.zshrc file:

nano ~/.zshrc

If you’re using bash, open your ~/.bash_profile:

nano ~/.bash_profile

Add the following line at the bottom of the file:

export PATH=$PATH:/usr/local/platform-tools

Save the changes and apply the changes by running:

source ~/.zshrc   # For zsh users
source ~/.bash_profile   # For bash users

Setting Up Android SDK Platform Tools on Windows

Download the Android SDK Platform Tools from the official Android Developer website:

  • Extract the downloaded ZIP file to a folder of your choice.
  • Open a Command Prompt (or PowerShell) and navigate to the folder where the platform-tools were extracted.
  • You can now run commands by navigating to this folder.

Optional: Add the platform-tools folder to your system’s PATH so you can run adb from any directory:

  • Right-click This PC > Properties > Advanced System Settings > Environment Variables.
  • In the System variables section, find Path, select it, and click Edit.
  • Click New and paste the path to the platform-tools folder.Click OK to save.

Congratulations! You’ve successfully installed the Android SDK Platform Tools.

Additional Tips:

  • Keep your platform tools updated for optimal performance and compatibility.
  • Explore online resources for in-depth tutorials on utilizing the platform tools for Android development.

Bonus : This is your guide to enable developer option on Android.

Share this article with your friends

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *