39

I installed Android Studio 1.2.1.1 and also created virtual device. I am trying to install one app (APK file) through command line but I could not find adb.exe file on my machine. Please help where should I look for adb.exe file on the machine.

5 Answers 5

100

The adb.exe file will be located at your Android SDK folder, inside platform-tools

...\android-sdk-path\platform-tools\adb.exe

The default location where Android SDK is installed is:

C:\Users\<insert username here>\AppData\Local\Android\sdk\

So adb will be located at:

C:\Users\<insert username here>\AppData\Local\Android\sdk\platform-tools\adb.exe

To access it on a command line, open cmd.exe and type:

cd C:\Users\<insert username here>\AppData\Local\Android\sdk\platform-tools\

and then your normal command

adb <insert parameters here>
4
  • 1
    Thanks PANAYIOTIS !! I got it. I was looking under program files.
    – KKG
    Jun 13, 2015 at 2:19
  • 7
    or u can do this: add %LOCALAPPDATA%\Android\sdk\platform-tools to your PATH environment variables, then you can simply call adb anywhere you want. Dec 22, 2015 at 2:32
  • I can't find and folder named "android" in AppData\Local folder. Hidden folders are also visible. Aug 4, 2017 at 10:24
  • @SahilPatel Did you start Android Studio? Cause only then will the SDK be downloaded and installed.
    – Larsen
    Mar 4, 2022 at 20:15
3

May be adb.exe file is missing form your computer. Try deleting platform-tools folder and re-download it from SDKManager.

1

Mac OS El Capitan has it located at /Users/[username]/depot_tools/src/chrome/browser/devtools/device

1

In my case, adb.exe got deleted after Android Studio update. I copied all the contents under platform-tools to another directory, deleted all the contents under platform-tools and installed platform-tools from Android SDK Manager.

0

Make sure in Android Studio, under System Settings > Andorid SDK > tab called SDK Tools, you have checked this option:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.