当前位置: 移动技术网 > 移动技术>移动开发>Android > 解决android sdk 运行出现 could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037:的问题

解决android sdk 运行出现 could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037:的问题

2020年07月27日  | 移动技术网移动技术  | 我要评论

在添加android平台后,cordova run android 出现 以下问题:

error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 (10048)

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
could not read ok from ADB Server
* failed to start daemon *
error: cannot connect to daemon

具体原因是 5037端口被占用了。

打开命令提示符输入以下:

 netstat -aon|findstr 5037

让我们看看进程的具体描述

tasklist /fi "PID eq 7704"

 

强制退出进程

taskkill /pid 7704 /f

再重启一下adb

adb start-server

当我再运行cordova run android 就没问题了。

本文地址:https://blog.csdn.net/lcombat/article/details/107560119

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网