Fix “Unable to locate adb within SDK” in Android Studio
The following 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.
Method 1 (Using Android Studio IDE)
To resolve this, firstly you need to check if the adb is even present in the SDK folder. For this, open C:\Users\Username\AppData\Local\Android\Sdk\platform-tools, check if adb.exe is present.
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
This generally occurs if the platform-tools are not installed properly. Reinstalling the platform tools might fix this problem. Open Android Studio, click SDK Manager in the toolbar or click Tools > SDK Manager, click SDK Tools, then uncheck Android-SDK Platform-Tools (as shown above). After this, open C:\Users\Username\AppData\Local\Android\Sdk and delete the platform-tools folder. Then go back to Android Studio and in the SDK Tools, check-mark ‘✓’ Android-SDK Platform-Tools.
Method 2 (Using sdkmanager command-line tool)
If you’re using Android Studio, you can simply use the IDE instead of this method and manage your SDK tools as stated in METHOD 1.
Case 1: If adb is not present
Install the platform tools. For this, open C:\Users\Prasoon\AppData\Local\Android\Sdk\tools\bin\sdkmanager. Type in:
sdkmanager "platform-tools"
Case 2: If adb is present
Reinstalling the platform-tools might fix this problem. For this, open C:\Users\Prasoon\AppData\Local\Android\Sdk\tools\bin\sdkmanager. Type in:
sdkmanager --uninstall "platform-tools"
Now the platform-tools are uninstalled. Open C:\Users\Username\AppData\Local\Android\Sdk and delete the platform-tools folder from there.
Now you need to reinstall the platform tools. Go back to the sdkmanager command-line tool and type in:
sdkmanager "platform-tools"
Method 3 (Check your anti-virus)
Sometimes, the windows security might quarantine adb.exe. You can simply resolve this issue by checking if the file is quarantined. If so, select the Allow on device option (as shown below).



