Tutorial on configuring environment variables of the adb command in Windows 7, windows7adb

Source: Internet
Author: User

Tutorial on configuring environment variables of the adb command in Windows 7, windows7adb

Preface

During development, the adb command must be used to connect to the real machine for testing. However, when I enter the adb command and the command is not valid, I know that my computer has not configured the adb command. I have been practicing Baidu for a long time and asked me to find an effective method. I would like to share with my friends the procedure.

Step 1: Find platform-tools

Open your computer and choose> Users> Administrator> AppData> Local> Android> sdk> platform-tools.

Wirepuller in the figure is my User Manager. To reach the Administrator, you need to open the hidden folder to see AppData. You can open it by following the path in the figure.

Step 2: locate the environment variable configuration location

First, right-click the computer-properties-advanced system settings-environment variables;

Find the environment variable configuration location and start configuration.

Step 3: Create an environment variable

In step 2, the "environment variables" dialog box is displayed. Click "new" for the following system variables.

Step 4: Create an Android variable

In the new system variable, configure the variable name: Android variable value: C: \ Users \ Administrator \ AppData \ Local \ Android \ sdk \ platform-tools (path of the Android SDK directory ADB development tool), for example:

Step 5: reference the new Android variable

In the environment variable, choose system variable> Path variable> click Edit to add the newly created environment variable. After the variable value, add C: \ Users \ Administrator \ AppData \ Local \ Android \ sdk \ platform-tools; % Android %

Step 6: Check whether the configuration is successful

Windows key + R open the run and Enter cmd to bring up the administrator interface. Enter the adb command. If it is displayed, the configuration is successful.

Summary

Configuring the adb environment variable is actually one step more than configuring the Java environment variable. I hope this blog will be helpful for our friends to configure the adb environment variable.

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.