2

When I write in cmd adb devices I got from windows this:

'adb' is not recognized as an internal or external command,
operable program or batch file.

but in my 2nd pc when I write this same adb devices i got list of my devices and i see my phone with android.

What is wrong with 1st PC ? How to repair it ?

1
  • 3
    make sure adb path is added to PATH variable to be globally available or navigate to path where adb is and use the command Commented Sep 20, 2017 at 18:13

1 Answer 1

6

It seems windows can't find adb in your computer. adb is located at this folder if you have installed android sdk

%USERPROFILE%\AppData\Local\Android\sdk\platform-tools

You can add this folder to PATH environment variable and then adb will be available globally. Here are steps

1. Click 'Start'.
2. Type 'Edit environment variables for your account', and click it.
3. Double click PATH.
4. Click 'New'.
5. Paste that path in.
6. Click 'OK', click 'OK', and restart any command prompts you have open.
4
  • added and now i see " List of devices" but all time "offline" why ? in old PC my phone is online
    – stevejobs
    Commented Sep 20, 2017 at 18:32
  • post the output of adb command.. you need to enable usb debugging in your device Commented Sep 20, 2017 at 18:33
  • i click everytime "enable" when i connect to the pc, this same problem when i try run app in android studio, this device got disconnect in this same moment
    – stevejobs
    Commented Sep 20, 2017 at 18:36
  • yes, enabled all, on other pc and pc in job, everything works, but on this new pc...
    – stevejobs
    Commented Sep 20, 2017 at 18:40

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