啟動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-20140624\sdk\platform-tools\adb.exe,start-server' failed -- run manually if necessary
然后模擬器列表為空了,找不到先前建立的模擬器了。然后百度查詢了下方法,記錄下。
原因是5037端口被占用了。
解決方法:就是找到誰占用了一個端口,然后把該程序關掉。
1、打開cmd窗口,進入adb.exe所在的文件夾目錄
如 cd D:\adt-bundle-windows-x86_64-20140624\sdk\platform-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 .