Locating adb.exe on Windows 10

Locating adb.exe on Windows 10

30 November 2024 Stephan Petzl Leave a comment Tech-Help

When working with Android development on Windows 10, you may encounter a common issue where the adb command is not recognized. This issue arises because the Android Debug Bridge (adb) is not included in your system’s PATH variable by default. In this article, we will guide you through locating adb.exe and adding it to your PATH for easy access.

Finding adb.exe

The adb.exe file is typically located within the Android SDK’s platform-tools directory. By default, it can be found in the following location:

C:\Users\[user]\AppData\Local\Android\sdk\platform-tools

You can also use the following shortcut to quickly access it:

%LOCALAPPDATA%\Android\sdk\platform-tools

To use this path in PowerShell, you can type:

$env:LOCALAPPDATA\Android\sdk\platform-tools

Adding adb.exe to Your System PATH

For ease of use, you should add the location of adb.exe to your system’s PATH environment variable. This allows you to run adb commands from any command prompt. Follow these steps:

  • Click ‘Start’ and type ‘Edit environment variables for your account’.
  • Select ‘Edit the system environment variables’.
  • In the System Properties window, click on ‘Environment Variables’.
  • Under ‘System variables’, find and select the ‘Path’ variable, then click ‘Edit’.
  • Click ‘New’ and paste the path to adb.exe (e.g., %LOCALAPPDATA%\Android\sdk\platform-tools).
  • Click ‘OK’ to close all dialog boxes and apply the changes.

Additional Troubleshooting

If you can’t find the platform-tools folder, you may need to install the “Android SDK Platform-Tools” from the SDK Manager within Android Studio. This ensures that all necessary components are available for your development environment.

Enhancing Your Testing Workflow

For those involved in app development and testing, using tools like Repeato can significantly streamline your process. Repeato is a no-code test automation tool for iOS and Android, allowing you to create, run, and maintain automated tests efficiently. It operates on computer vision and AI, making it fast and intuitive. Repeato includes ADB on board, enabling you to execute ADB commands through script steps, which can be particularly useful if you are managing complex test sequences.

For more information on setting up and using Repeato, visit our documentation page.

Like this article? there’s more where that came from!