Error:Unable to locate adb within SDK in Android Studio
The ADB
is now located in the Android SDK platform-tools.
- Check your
[sdk directory]/platform-tools
directory and if it does not exist, then open the SDK manager in the Android Studio (a button somewhere in the top menu, android logo with a down arrow), switch to SDK tools tab and and select/install the Android SDK Platform-tools.
- Alternatively, you can try the standalone SDK Manager: Open the SDK manager and you should see a "Launch Standalone SDK manager" link somewhere at the bottom of the settings window. Click and open the standalone SDK manager, then install/update the
"Tools > Android SDK platform tools".
If the above does not solve the problem, try reinstalling the tools: open the "Standalone SDK manager" and uninstall the Android SDK platform-tools, delete the
[your sdk directory]/platform-tools
directory completely and install it again using the SDK manager.Check your antivirus chest. Sometimes the Antivirus program thinks adb.exe is a virus. If you find it there please restore the file and it will start working. You can also put adb.exe as a safe file in you Antivirus program.
Hope this helps!
In my case I had no SDK selected for my project(not sure why). Simply went to Project Structure dialog (alt+ctrl+shift+s
or button 1 on the screen) and then to project-> Project SDK's was selected <no SDK>
. Just changed it to the latest
For anyone who is still running into this issue. I had a similar problem where I could see my device from adb on the command line using adb devices
but Android Studio would not recognize when I had a device attached and would throw either:
Unable to locate adb within SDK
orUnable to obtain result of 'adb version'
I had tried start/stops of adb, uninstalls, of platform-tools, and more. What I found was that inside my
C:\Users\<UserName>\AppData\Local\Android
folder I had multiple sdk folders. I performed the following:- Unistall Platform-Tools using Android Studio's SDK Manager
- Deleted all
platform-tools\
directories within eachC:\Users\<UserName>\AppData\Local\Android\sdk*
directory - Reinstalled Platform-Tools using Android Studio's SDK Manager
Hope this helps someone someday with their issue.