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.