Android ADB Server启动失败

   启动Android Stdio的时候报如下错误:

Unable to create Debug Bridge: Unable to start adb server: error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 閫氬父姣忎釜濂楁帴瀛楀湴鍧�(鍗忚�/缃戠粶鍦板潃/绔�彛)鍙�厑璁镐娇鐢ㄤ竴娆°�� (10048)
could not read ok from ADB Server
* failed to start daemon *
error: cannot connect to daemon
'D:adt-bundle-windows-x86_64-20140624sdkplatform-toolsadb.exe,start-server' failed -- run manually if necessary

  然后模拟器列表为空了,找不到先前建立的模拟器了。然后百度查询了下方法,记录下。

     原因是5037端口被占用了。

     解决方法:就是找到谁占用了一个端口,然后把该程序关掉。

     1、打开cmd窗口,进入adb.exe所在的文件夹目录

      如 cd D:adt-bundle-windows-x86_64-20140624sdkplatform-tools

     2、netstat -aon|findstr "5037"

      TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 5456

  

      发现5456占用了 5037端口,继续查看5456的task,发现是360MobileLink.exe.如下所示

      tasklist|findstr "5456"

      360MobileLink.exe 5456 Console 1 23,240 K

  

      接下来问题就好解决了,在任务管理器kill掉360MobileLink.exe ,运行android程序,ok .

高山流水,海纳百川!
原文地址:https://www.cnblogs.com/ahcc08/p/6435344.html