且构网

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

无法打开调试器端口:java.net.ConnectException“Connection denused”

更新时间:2022-05-14 08:47:39

端口可能很忙(由另一个进程使用)。
您可以使用以下命令杀死与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

lsof -i :8601