打开Android Studio的时候报error: cannot connect to daemon错误

来源:互联网 发布:通达信的行情软件 编辑:程序博客网 时间:2024/05/18 13:29


* daemon not running. starting it now on port 55555 *

error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:55555: 閫氬父姣忎釜濂楁帴瀛楀湴鍧€(鍗忚/缃戠粶鍦板潃/绔彛)鍙厑璁镐娇鐢ㄤ竴娆° €?(10048)
could not read ok from ADB Server
* failed to start daemon *

error: cannot connect to daemon


这是因为你在环境变量设置的端口被占用  


这时你应该 进入CMD(命令提示符)(需要管理员权限)   输入netstat -ano | findstr "55555"(55555改成你的端口号)

回车  这时会显示出     TCP    127.0.0.1:55555        0.0.0.0:0              LISTENING       11740

11740就是占用你ADB端口的应用  进入任务管理器将11740的应用结束掉就可以了

1 0