first step, open the Environment Variable Configuration window. Right-click Computer, Properties-Advanced system settings-environment variables.
Step two, add the Android system environment variable. Under System variables, click the New button, enter the environment variable name ADB (write it Yourself)
Variable name: adb
variable value: D:\Android\ Android-sdk-windows\platform-tools;d:\android\android-sdk-windows\tools
step three, add the environment you just added in path. Select the system variable in the path, click the Edit button, enter the environment just built, method and configuration Java, remember to add climbed semicolon,
variable name: path
Variable value:%adb%;
Fourth step, test the environment variable. Press and hold the Win+r shortcut key, open run, enter CMD. Enter ADB to view the results of the operation. That's it!!!