'adb' is not recognized as an internal or external command

11,493

remove the user variable you added System Variable PATH Variable name : PATH Variable Value : C:\Users\KJA\AppData\Local\Android\sdk\platform-tools open a new terminal try echo %path%

restart android studio and try adb on android studio terminal

Share:
11,493
Sauron
Author by

Sauron

Updated on June 04, 2022

Comments

  • Sauron
    Sauron almost 2 years

    I have set the environmental variables as:

    enter image description here

    and

    enter image description here

    as well as added them to the path, which calling echo %path%:

    enter image description here

    yet calling adb from command still yields the error:

    'adb' is not recognized as an internal or external command

    What could be the cause of this issue?

  • Sauron
    Sauron about 8 years
    I did that, nothing changed. Do I need to restart?
  • dione llorera
    dione llorera about 8 years
  • dione llorera
    dione llorera about 8 years
    and make sure you are pointing out the correct directory in variable value.. nope no need for restart
  • dione llorera
    dione llorera about 8 years
    ok i got it working now edit the system variable name PATH and make the value to where until platform-tools where adb is located and dont add it on user variables after that restart android studio
  • Sauron
    Sauron about 8 years
    That is what I am doing. adb is located within the file platform-tools
  • dione llorera
    dione llorera about 8 years
    can you show me the variable name and the value please
  • Sauron
    Sauron about 8 years