无法打开调试器端口:java.net.ConnectException“Connection denused” [英] Unable to open debugger port : java.net.ConnectException "Connection refused"
问题描述
我正在使用 Android Studio v1.0.1
在Mac OS Yosemite 10.10中构建应用程序,但是当我尝试调试该应用程序时,它会正确安装但是得到错误:
I'm using Android Studio v1.0.1
for build an app in a Mac OS Yosemite 10.10, but when i'm trying to debug the app , it install correctly but get the error:
运行[app]时出错:无法打开调试器端口:java.net.ConnectExceptionConnection refused p>
Error running [app]: Unable to open debugger port : java.net.ConnectException "Connection refused"
当我运行DDMS apperas连接的设备并显示进程。在Android Studio中尝试调试时遇到的麻烦
When I run the DDMS apperas the devices connected and show the process. The trouble its just when try to debugg in Android Studio
在我创建的另一个论坛中,可能会更改调试器的端口,但不能解决我的问题
In another forums i've founded that could have change the port of debugger but it doesn't solve my issue
如果有人可以帮助解决这个问题,请
If Somebody could helpme to solve this, please
推荐答案
端口可能很忙(由另一个进程使用)。
您可以使用以下命令杀死与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
这篇关于无法打开调试器端口:java.net.ConnectException“Connection denused”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!