download
Because the adb tool is placed in the platform-tools in the android sdk, you only need to search the android sdk in the browser (Google Chroma is recommended) and download it from the official website. After the download is successful, a file named platform-tools compressed package.
Download address: Download Android SDK - free - latest version
decompress
After the download is successful, click the compressed package to decompress it, and it will be installed on the C drive by default. If you don’t want to install it on the C drive, you can choose the path to install to a custom directory when decompressing. For example, my installation path is D:\ android_sdk \platform-tools (be sure to remember your own installation directory), after successfully decompressing the ADB tool, it looks like this
Configure environment variables
Step 1. Right click on My Computer (Computer), select System Properties
Step 2. Select Advanced System Configuration and click Environment Variables
Step 3. Select System Variables, select Path, and add the ADB installation path (that is, the installation directory) to the path.
I use Windows 7, and the environment configuration of Windows 10 is similar. If you have friends who don’t understand win10 configuration, you can leave a comment, and I will publish an article about the environment configuration of win10.
Step 4. Verify whether the addition is successful, win+R shortcut key, enter cmd to open the command window, enter: adb version
If the above picture shows: 'adb' is not an internal or external command, nor is it an executable program or batch file, the reason for the above problem may be that the environment variable has not been configured, that is, the installation path has not been added to the system variable path But obviously, we have just added the path to the system variable path, so why does the above problem still occur after executing the adb command, and how to solve it?
Solution:
Just copy the three files adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll under the adb toolkit to C:\Users\Administrator
How to reopen the cmd command window, enter: adb version verification, if the following figure appears, it means that the environment variable configuration is successful, and then you can use adb!