ADB installation guides¶
Windows¶
Option 1: Manual setup (Official SDK Platform-Tools)¶
-
Download Platform-Tools: Download the SDK Platform-Tools for Windows zip archive from the official Android Developer website.
-
Extract the folder: Extract the zip file to a permanent location on your PC (for example,
C:\platform-tools). -
Open Environment variables:
- Press the
Windows key, typeEnvironment variables, and select Edit the system environment variables. -
Click the Environment Variables... button at the bottom right.
-
Edit the
Pathvariable: - Under User variables (or System variables), select the
Pathvariable and click Edit.... - Click New, and paste the full folder path where
adb.exeis located (e.g.,C:\platform-tools). -
Click OK on all open dialog windows to save the changes.
-
Verify installation:
Open a brand-new Command Prompt or PowerShell window (or restart your current terminal), and run:
```
adb version
```
Option 2: Using a package manager¶
-
Open PowerShell as an Administrator and run either:
-
Winget:
winget install Google.PlatformTools -
Chocolatey:
choco install adb -
Restart your terminal window to apply the path changes, then verify installation:
Open a brand-new Command Prompt or PowerShell window (or restart your current terminal), and run:
adb version
macOS¶
Option 1: Using Homebrew (recommended)¶
-
Install Homebrew (if not already installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install Android Platform Tools:
brew install android-platform-tools -
Verify installation:
adb version
Option 2: Manual setup¶
-
Download Platform-Tools: Download the SDK Platform-Tools for Mac from the official Android Developer website.
-
Move the folder: Extract the zip and move the
platform-toolsdirectory to your user home folder:mv ~/Downloads/platform-tools ~/platform-tools -
Add to PATH in shell profile: Add the path to your shell configuration file (
~/.zshrcfor default macOS zsh, or~/.bash_profileif using Bash):echo 'export PATH="$HOME/platform-tools:$PATH"' >> ~/.zshrc -
Apply changes and verify:
source ~/.zshrc adb version