Android Studio与夜神模拟器开发调试 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:

Android Studio与夜神模拟器开发调试 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:


百度夜神,或者360软件商店

Android Studio与夜神模拟器开发调试 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:

(1)运行夜神模拟器,

(2)打开命令行窗口,

(3)打开到夜神安装目录(如cd D:\Program Files\NOX\Nox\bin),

(4)执行命令:nox_adb.exe connect 127.0.0.1:62001,连接模拟器,

(5)若Android Studio连接不上夜神,重启模拟器即可。

4、这时在Android Studio窗口上点击run 'app'(或shift+F10)

会发现弹出的窗口如下所示:

Android Studio与夜神模拟器开发调试 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:

如果Android Studio 运行显示

使用Android Studio工具时,经常遇到“error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 (10048)”这种问题

1、首先弄清楚是哪个进程占用了该地址

         开始—>运行
         输入:cmd,确定。
         dos窗口输入:netstat -nao | findstr "5037"

Android Studio与夜神模拟器开发调试 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:


占用该地址的进程PID是【4328】

       2、根据PID找到该进程,结束进程

       打开任务管理器—>查看—>选项列(S)—>勾选 PID,确定—>进程按钮栏

Android Studio与夜神模拟器开发调试 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:


如果5307被adb占用结束它会显示

Android Studio与夜神模拟器开发调试 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:

Android Studio与夜神模拟器开发调试 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:

Android Studio与夜神模拟器开发调试 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:


在点击



Android Studio与夜神模拟器开发调试 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:



成功后

Android Studio与夜神模拟器开发调试 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:

Android Studio与夜神模拟器开发调试 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1: