adb configuration environment variables under win10 system

 1. Open the environment variable configuration window, as shown in the figure below, right-click Computer, Properties--Advanced System Settings--Environment Variables

 

2. Find the file paths of tools and platform-tools in the SDK, and copy these two paths directly

 

 

 3. Switch to the interface of adding environment variables, as shown in the figure, click New in the system variables below

 

3.1, Create a new system variable

Variable name (N): Android

Variable value (V): Refer to the full path of the tools and platform-tools files in the second step, separated by a semicolon ";" in English in the middle, after configuration, click OK, OK, OK, don't forget.

Example: full paths to files for my tools and platform-tools 

          D:\Andriod_SDK\Andriod_SDK\tools

          D:\Andriod_SDK\Andriod_SDK\platform-tools

 

4. Select the system variable Path, add the environment just now in Path, and click Edit

    Add to the variable value of Path: %android% (note that the percent sign is in English) and click OK, OK, OK

 

 5. To test whether the test is successful, use the shortcut win+R to enter the command line, enter cmd and press Enter

6. Enter adb, as shown in the figure, which means that the adb environment variable has been successfully configured

 

Guess you like

Origin blog.csdn.net/weixin_39118023/article/details/121774683