无法打开调试端口:java.net.ConnectException"连接被拒绝" [英] Unable to open debugger port : java.net.ConnectException "Connection refused"

查看:9897
本文介绍了无法打开调试端口:java.net.ConnectException"连接被拒绝"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用 Android的工作室V1.0.1 用于构建在的Mac OS约塞米蒂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:

错误运行[应用]:无法打开调试器端口:java.net.ConnectException连接被拒绝

Error running [app]: Unable to open debugger port : java.net.ConnectException "Connection refused"

当我运行DDMS apperas连接的设备,并显示进程。麻烦的只是当尝试在Android的Studio中debugg

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

如果有人能helpme来解决这个问题,请

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 ,<一个href=\"http://superuser.com/questions/225229/what-to-you-use-as-a-fuser-v-n-tcp-alternative-on-mac-os-x\"><$c$c>lsof应该做的工作在替换定影

lsof -i :8601

这篇关于无法打开调试端口:java.net.ConnectException&QUOT;连接被拒绝&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆