1. 程式人生 > >Unable to create Debug Bridge: Unable to start adb server: error: could not install *smartsocket* li

Unable to create Debug Bridge: Unable to start adb server: error: could not install *smartsocket* li

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)
error: unknown host service
could not read ok from ADB Server
* failed to start daemon *
error: cannot connect to daemon

意思是5037埠被其它應用佔用了,找到該埠對應的應用,步驟如下:
1.開啟cmd.
2.輸入netstat -aon|findstr “5037”,如下圖
1


3.輸入tasklist|findstr “10056”,如下圖
2
4.在工作管理員中幹掉該應用,重啟AndroidStudio即可