Android Studio ADB is not connected to the phone

Source: Internet
Author: User

Workaround: First find out if the ADB service is bound port problems, if there is a problem with the binding port, find out which process the port is occupied, and then kill the process.

1. Start the ADB service with CMD first. This time will prompt the startup to fail. E:\android-SDK-4.2\android-sdk\platform-tools>adb start-server ADB server is out of date. Killing ... ADB server didn ' t ACK * failed to start daemon * 2. The service failed to start for many reasons, but generally the port binding failed. Let's take a look at the port binding information. , there is really a problem with the port binding. E:\android-SDK-4.2\android-sdk\platform-tools>adb Nodaemon server cannot bind ' tcp:5037' 3. Let's see which service takes up this port. There are 2 processes that occupy this port. E:\android-sdk-4.2\android-sdk\platform-tools>netstat-ano | Findstr "5037" tcp 127.0.0.1:5037 0.0.0.0:0 LISTENING 5456 tcp 127.0.0.1:5037 127.0.0.1:1221 time_wait 0 TCP 1 27.0.0.1:5037 127.0.0.1:1222 time_wait 0

Kill the process of listening on port 5456 under the console

E:\android-sdk-4.2\android-sdk\platform-tools>taskkill/pid 5456Error: Unable to terminate the PID 5456 process. Cause: This process can only be forcibly terminated (with/F option). E:\android-sdk-4.2\android-sdk\platform-tools>taskkill/pid 5456 /F success: The process of PID 5456 has been terminated.

Kill the process that caused the problem, and then execute the preceding command

E:\android-sdk-4.2\android-sdk\platform-tools>netstat-ano | Findstr "5037"e:\android-sdk-4.2\android-sdk\platform-tools>adb Nodaemon ServerNote: Android Stuido is connected to true function but cannot be debugged, usually related to some mobile software.
Check to see if the port can be bound when not connected to the phone, use the cmd command
ADB Nodaemon Server
If prompted:
Cannot bind ' tcp:5037 '
is a port binding failure, continue to see which port is taking up
Run Command: Netstat-ano | Findstr "5037"
Result output:
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 8744
TCP 127.0.0.1:5037 127.0.0.1:51531 established 8744
TCP 127.0.0.1:5037 127.0.0.1:52082 time_wait 0
...
Description The current port is occupied by PID 8744 process, run tasklist View list PID 8744 process
or run Taskkill/pid 8744 or taskkill/im xxxx.exe directly.
Some rogue software processes may not shut down and can be uninstalled directly ...

Android Studio ADB is not connected to the phone

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.