android检测不到手机设备



error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 (10048)

今天开始Android studio的时候突然遇到一个情况就是检测不到设备显示上面的问题。问题原因:5037端口被占用


C:\Users\何丽婷>adb kill-server

C:\Users\何丽婷>adb nodaemon server
error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 (10048)

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

C:\Users\何丽婷>netstat -ano | findstr "5037"
  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       6500
  TCP    127.0.0.1:5037         127.0.0.1:56252        ESTABLISHED     6500
  TCP    127.0.0.1:56218        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:56252        127.0.0.1:5037         ESTABLISHED     6068
  TCP    127.0.0.1:56254        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:56255        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:56256        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:56257        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:56259        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:56260        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:56261        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:56262        127.0.0.1:5037         TIME_WAIT       0

C:\Users\何丽婷>adb kill 6500
Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
Installed as F:\adt-bundle-windows-x64\android-sdk-windows\platform-tools\adb.exe



C:\Users\何丽婷>tasklist|findstr "6500"
360MobileLink.exe             6500 Console                    1     45,760 K

C:\Users\何丽婷>adb kill 360MobileLink.exe
Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
Installed as F:\adt-bundle-windows-x64\android-sdk-windows\platform-tools\adb.exe


猜你喜欢

转载自blog.csdn.net/qq_35114086/article/details/73712688
今日推荐