Troubleshooting ‘adb command not found’ Error

Troubleshooting 'adb command not found' Error

22 April 2024 Stephan Petzl Leave a comment Tech-Help

Encountering an ‘adb command not found’ error can be a stumbling block when you’re trying to run Android Debug Bridge (ADB) commands. This typically occurs when the system cannot locate the adb executable in your current PATH. Let’s walk through the steps to resolve this issue on macOS.

Verifying ADB Installation

Firstly, confirm that ADB is installed on your system by running the following command in the Terminal:


If this command produces output, ADB is installed, and you may proceed to the next section. If not, you’ll need to install the Android SDK Platform-Tools.

Installing Android SDK Platform-Tools

To install the Platform-Tools, follow these steps:

  1. Open Android Studio.
  2. Navigate to the SDK Manager via Tools -> Android -> SDK Manager.
  3. Ensure that Android SDK Platform-Tools is checked and install it.

Setting Up PATH Environment Variable

After confirming that ADB is installed, you’ll need to add its directory to your system’s PATH. This allows you to run ADB commands from any directory in the Terminal. Add the following lines to your .bash_profile or .zshenv file, depending on whether you are using Bash or Z Shell:

export PATH=~/Library/Android/sdk/tools:$PATH
export PATH=~/Library/Android/sdk/platform-tools:$PATH

After editing the file, apply the changes by running:

source ~/.bash_profile

or, if you’re using Z Shell:

source ~/.zshenv

Alternative: Using Homebrew

An alternative method for installing ADB is via Homebrew, which also provides automatic updates:

/bin/bash -c "$(curl -fsSL"
brew install --cask android-platform-tools

After installation, you can start using ADB:

adb devices


By following these steps, you should have resolved the ‘adb command not found’ error and can now use ADB commands freely in your development workflow.

Introducing Repeato

While troubleshooting ADB commands is one aspect of app development, ensuring your app’s quality is another critical factor. This is where Repeato, a No-code test automation tool for iOS and Android, can help. Repeato allows you to create, run, and maintain automated tests for your apps with ease. Its fast editing and execution capabilities, combined with computer vision and AI, make it an essential tool for developers working with any app framework, including react-native, flutter, and unity.

If you’re dealing with ADB commands, Repeato’s built-in ADB support allows you to execute ADB commands via script steps, streamlining your testing process. With Repeato, you can focus on building quality apps while the tool handles the intricacies of test automation.

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