Introduction
ADB or Android Debug Bridge is a command-line tool that helps you interact with a device. It is automatically installed on your system and Android Studio when you install Android SDK. Sometimes, due to some reasons, the adb.exe file may get damaged, corrupted, or lost.
The ADB error occurs when the ADB file is not found within the SDK system folder. A software development kit (SDK) provides the software required to build your applications for a target platform. There can be multiple reasons for this-
Solution 1 SDK Manager of Android Studio
One way to solve this is to check the ADB in your system. For this, you can refer to the SDK taken platform in android studio. The default folder for the SDK platform is C:\Users\Username\AppData\Local\Android\Sdk\platform-tools .
Case 1: If ADB is not present:
If the ADB is not present, installing the platform tools resolves the problem. For this, open Android Studio, click on SDK Manager in the toolbar or click Tools > SDK Manager, click on SDK Tools, then check-mark ‘?’ Android-SDK Platform-Tools (as shown below).
Case 2: If ADB is present
The simple solution for this problem can be to uninstall the Android Studion and then reinstall it. Then follow the same process to open the SDK Tools.
Solution 2 Anti-virus check
An Anti-virus or Windows Security can disable your SDK manager due to some reasons. For this you can check your current anti-virus settings and remove this as a threat & also check your defender or Windows Security and check the Virus & threat protection settings there might be an adb.exe file there. Sometimes this can quarantined adb manager and cause you an error.
Conclusion
This article covers the possible solution for 'unable to locate ADB' in Android Studio.
Thank you for finishing my blog and checking out my work! I would love to hear your thoughts. Please comment below.