SDK environment variable configuration and ADB is not an internal or external command cause analysis

Source: Internet
Author: User

One

1, the SDK download: http://tools.android-studio.org/index.php/sdk/recommended download zip format file, download unzip can

2. In the extracted SDK file, find "Platform-tools" and "Tools" and copy and paste the two paths into the PATH environment variable.

How to add an environment variable:

2-1. Click the Microsoft logo on the lower left corner of the computer.

2-2, find "Computer" right click, in the Popup box, click "Properties";

2-3, in the pop-up window, click on "Advanced system Settings";

2-4, in the advanced, click on the "Environment variable";

2-5. Locate path in the "system variable" below the Open environment Variables window, and return to the 2nd step.

3, verify that the SDK is configured successfully, open cmd, input adb, if a lot of English, indicating the environment variable configuration success;

As in the previous steps, it is not difficult to configure the SDK environment variables. But do not rule out following the steps above, the cmd input adb prompt is not an internal command or an external command. This is actually caused by the absence of adb.exe files (usually missing in the Platform-tools file) in the "Platform-tools" and "Tools" files under the SDK.

Two

1. Add Adb.exe file Method one:

Open the SDK Manager and download or update the Platform-tools package (this method may not be reliable because the FQ is unsuccessful and cannot be downloaded);

2. Add Adb.exe file Method two:

2-1, direct to: http://tools.android-studio.org/index.php/sdk/This site download Platform-tools package (recommended to bookmark this URL, this site is very friendly, sharing a lot of Android toolkit, Thanks a bit)

2-2. Unpack the downloaded package and put it in the SDK directory (if you already have a Platform-tools folder, put the downloaded file into the folder)

2-3. If you have not previously added the Platform-tools directory to the environment variable, do so at the first step above.

SDK environment variable configuration and ADB is not an internal or external command cause analysis

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.