[Android development FAQ-13] How to directly use the ADB command in cmd

Source: Internet
Author: User

Many developers may encounter a problem, that is, each time they use the ADB command, they need to CD to the directory where Android-SDK/platform-tools is located for execution. Otherwise, they will prompt that ADB is not an internal command, how can this problem be solved?

In fact, the system prompts that ADB is not an internal command, that is, the system cannot find this ADB command. Why can't it be found?

The mechanism is the same as that in Linux. The system will find it in the path contained in the environment variable path. if it finds it, it will execute it. If it cannot find it, it will prompt that it is not an internal command, then we can understand that, in fact, we only need to add the path of the Android-SDK to the environment variable path. The specific method is as follows:

1. Choose computer> Properties> advanced system Settings> environment variable> New one.

Here, the name android_sdk_home should not be changed. The value below is the directory where your SDK is located. Note that you only need to go to/....../SDK.

2. In Path, add the following parts:

; % Android_sdk_home %/platform-tools; % android_sdk_home %/tools

Pay attention to the percentage and semicolon position. After setting, you can open CMD and try again.

Related Article

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.