error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037
HbuilderX无法识别到夜神模拟器
打开控制台,输入
adb devices
发现报错
List of devices attached
adb server version (31) doesn't match this client (36); killing...
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
原因:端口被占用,需要找到对应应用,并在任务管理器中杀掉进程
解决方案:
在控制台中输入
netstat -aon|findstr "5037"
控制台输出
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 576
TCP 127.0.0.1:5037 127.0.0.1:62516 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:62608 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:62620 TIME_WAIT 0
发现被应用ID为576的应用占用了端口,接着在控制台输入
tasklist|findstr "576"
在控制台中找到对应的应用名称,按ctrl+shilft+Esc打开任务管理器,杀掉对应进程即可。
有时候出现这个问题是因为微信小程序模拟器同时打开,占用了端口,这个时候也是需要打开任务管理器杀掉adb进程,再重新启动真机模拟器
还没有评论,来说两句吧...