android出現(xiàn)該段錯(cuò)誤:
Unable to create Debug Bridge: Unable to start adb server: error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每個(gè)套接字地址(協(xié)議/網(wǎng)絡(luò)地址/端口)只允許使用一次。 (10048)
could not read ok from ADB Server
* failed to start daemon *
error: cannot connect to daemon
'D:\android_soft\Sdk\platform-tools\adb.exe start-server' failed -- run manually if necessary
解決方案:在管理器中殺死adb.exe即可。
學(xué)到的東西,在cmd中查看是哪個(gè)端口被占用,命令如下?
1.進(jìn)入adb.exe 所在目錄 ?(進(jìn)入D盤(pán),直接 “D:”)
2. netstat -aon|findstr "5037" ?, 查看端口被占用
3.tasklist|findstr "5456" ,查看被占用的端口是哪個(gè)應(yīng)用?