且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法打开调试器端口:java.net.ConnectException“连接被拒绝"

更新时间:2021-06-29 08:36:56

您的调试端口可能正忙(正在被另一个进程使用).您可以使用以下命令终止与 ADB 调试端口(8601 或更高版本)相关的所有进程:

Your debug port is probably busy (in use by another process). You can kill all the process associated with the ADB debug port (8601 or higher) using this:

fuser -k 8601/tcp 

更新:

OSX 下,lsof 应该代替 fuser 来完成这项工作:

Under OSX, lsof should do the job in substitution of fuser:

lsof -i :8601