2. Check whether port 5037 (the default port of adb. Exe) is occupied, close the process that occupies port 5037 except 5037(adb.exe, and restart the ADB service.
2. 1, adb nodaemon server: detect whether port 5037 is occupied; ?
2.2.netstat -ano | findstr "5037 ":check what process occupies port 5037; ?
2.3. Tasklist | Findstr "2 1 152": Check which program created this process (21152 is PID); Processes occupying port 5037); ?
2.4.taskkill/f/PID 21152: Shut down the process; ?
2.5.adb device: displays the currently connected device. ?
Here is another solution, by manually checking the hardware ID, install google native android debugging driver; ?
1, right-click my computer-> Management->; Equipment management->; Android phone. Here we can see the driver of the corresponding Android device. ?
2. Select the right-click attribute of the driver. Under the detailed information option, select the hardware Id in the attribute (P) option and record the information in the following value (V). For example, the value of a device is:
USB \ VID _ 2A45 & ampPID _ 0C02 & ampREV _ & ampMI_0 1
USB \ VID _ 2A45 & ampPID _ 0C02 & ampMI_0 1
Mainly focused on two values, 2A45 and 0C02. ?
3. Find the sdk directory developed by android in your computer and download it (assuming you have downloaded it through sdk manager), enter the folder \extras\google\usb_driver, find android_winusb.inf and open it. This is the configuration file of Google android. Looking for a line [Google]. NTx86] (For 32-bit platforms, 64-bit is also added in this way) In the file, you can see the driver information of many android devices, such as:
; Google nexus one% singlebininterface% = USB _ install, USB \ vid _18d1&; PID _ 0d 02% compositedbininterface % = USB _ Install,USB \ VID _ 18d 1 & amp; PID _ 0D02 & Mi _0 1 123
Here, we only need to copy the driver information according to the format of this file and modify it with 2A45 and 0C02 obtained in 2, as follows:
; Meizu metal% singlebininterface% = USB _ install, USB \ vid _ 2a45 & amp PID _ 0c02% Compositedbininterface% = USB _ install, USB \ VID _ 2A45 & ampPID _ 0C02 & amp meter _ 0/123.
Save and close. ?
4. Uninstall the original driver and restart the computer. Make sure that the mobile phone has entered the developer mode and allowed USB debugging, and select the connection mode to transfer files. Then right-click the computer again-> Management->; Equipment management->; Other equipment. You can see that there is a question mark on the ADB interface option, indicating that the driver is not installed correctly. Select ADB interface and right-click to update the driver software-> Browse your computer to find the driver software. When browsing, select the folder where we added the hardware device driver information file android_winusb.inf (d: \ android-sdks \ extras \ google \ usb _ driver, where you only need to select the folder, but you don't need to select the file), and then choose always install after the next step. ?
5. After successful installation, an Android phone option will appear in device management.