Setting up ADB Path on Windows: Android Tips.

Ashish Sharma
3 min readSep 26, 2023

ADB (Android Debug Bridge) is a crucial tool for Android app developers, allowing you to communicate with Android devices from your computer. To use ADB effectively, you need to set up the ADB path in your Windows environment. Follow these step-by-step instructions to get started:

Step 1: Download Android SDK Platform Tools

  1. Open your web browser and visit the official Android SDK Platform Tools download page: Android SDK Platform Tools.
  2. Scroll down to find the “SDK Platform-Tools for Windows” section.
  3. Click the “Download the Windows platform-tools” link to download the ZIP file containing ADB and other tools.

Step 2: Extract the ZIP File

  1. Locate the downloaded ZIP file (e.g., “platform-tools_r32.0.0-windows.zip”) in your computer’s Downloads folder.
  2. Right-click the ZIP file and select “Extract All.”
  3. Choose a destination folder where you want to extract the files, and click “Extract.” This will create a folder containing the ADB and other tools.

Step 3: Copy the ADB Folder Path

  1. Navigate to the folder where you extracted the contents of the ZIP file. This folder should contain the “adb.exe” file.
  2. Click on the folder’s address bar at the top. It will display the full path to the folder.
this folder should contain adb.exe

Step 4: Add ADB Path to Environment Variables

  1. Type “Environment Variables” in the Windows search bar and select “Edit the system environment variables.”
  2. In the “System Properties” window, click the “Environment Variables” button at the bottom.

Step 5: Edit the “Path” Variable

  1. In the “Environment Variables” window, under the “System variables” section, locate the “Path” variable, and select it.
  2. Click the “Edit” button.

Step 6: Add ADB Path

  1. In the “Edit Environment Variable” window, click the “New” button.
  2. Paste the ADB folder path you copied earlier into the input field.
  3. Click “OK” to close each of the windows.

Step 7: Verify ADB Installation

  1. Open Command Prompt (cmd) or PowerShell.
  2. Type “adb” and press Enter.
  3. You should see ADB commands and options displayed, indicating that ADB is successfully installed and configured.

Congratulations! You’ve successfully set up the ADB path in your Windows environment. You can now use ADB commands from the Command Prompt or PowerShell without specifying the full path to the ADB executable. This is essential for Android app development and debugging on your Windows machine.

Conclusion

Setting up the ADB path in your Windows environment is a crucial step for any Android app developer. It allows you to seamlessly communicate with Android devices from your computer, making app development and debugging much more efficient.

By following this step-by-step guide, you’ve learned how to download Android SDK Platform Tools, extract the necessary files, and add the ADB path to your system’s environment variables. This simple process ensures that you can use ADB commands directly from the Command Prompt or PowerShell without specifying the full path.

Now that you have ADB properly configured, you’re ready to take your Android app development to the next level. Whether you’re testing your apps on physical devices or virtual emulators, ADB will be your indispensable companion for debugging and interacting with Android devices. Happy coding!

That’s it for this article! I hope you enjoyed it and leave a few claps if you did. Follow me for more Flutter articles and comment for any feedback you might have about this article.

What’s Next:

--

--

Ashish Sharma

TheFlutterist: Teaching Flutter in the most playful way possible. Join me in the land of widgets and hot reloads!