Android ADB is not an internal or external command

Source: Internet
Author: User

DOS window running ADB command error: ADB is not an internal or external command ....

Causes of problems and solutions:

1. No related environment variables are configured.

Simply add the Android SDK installation path to the system variable path.

(Take Win7 system as an example)

The following path

The D:\android-sdk_r10-windows\android-sdk-windows\tools is added to the system variable path.

Computer--attribute--system protection--advanced--environment variable

 

Be careful not to change the other paths that you already have, just add a semicolon after the original path, and then copy the new path (or add it to the front, and remember to separate the semicolon from the path that follows).

2. Error still occurs after setting environment variable. That is to make it possible that Adb.exe is not in the Tools folder.

(In the simplest way, simply enter Adb.exe in the search box to find the folder where the Adb.exe is located, and then add the path to the system variable)

android2.2 and android2.3 are not the same, in 2.2, Adb.exe is under the Tools folder, while in 2.3, under the Platform-tools folder.

So to set the path to:

D:\android-sdk_r10-windows\android-sdk-windows\platform-tools

Next.

It is important to note that after the Android version changes, some folder paths change, and only the corresponding changes can be made. In addition, version 2.3 still needs to be added

D:\android-sdk_r10-windows\android-sdk-windows\tools the path to the system variable. Otherwise, an error that is not an internal command or external command will appear later when you use commands such as emulator.

Android ADB is not an internal or external command (GO)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.