Android的工作室调试错误"连接被拒绝" [英] Android studio debug error "Connection refused"

查看:627
本文介绍了Android的工作室调试错误"连接被拒绝"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题被问过,但我尝试了所有建议的解决方案,并没有解决我的问题呢。
我不能调试任何Android工作室使用Mac优胜美地(1.5 preVIEW 2)应用程序。

I know this question was asked before but I tried all the suggested solutions and nothing solved my problem yet. I can't debug Any Android studio (1.5 preview 2) application using Mac Yosemite.

我得到的错误是:

Unable to open debugger port (localhost:8600): java.net.ConnectException "Connection refused":

调试控制台我可以看到错误的。

on the debug console I can see error

"Debug port is busy"


我试过没有成功如下:


I've tried the following with no success:


  1. 重新安装JDK 6 + 7

  2. 确保港口8600+与使用kill打开。

  3. 重新安装Android的工作室,并配置一定SDK的位置。

  4. 添加调试的真正的调试版本类型。

  5. 重启手机用USB调试启用。

  6. 重启Android的工作室和我的MAC。

  7. 试图与构建变量调试和发布。

  8. 在模拟器我有同样的问题。

与Eclipse我没有与调试我的应用程序的任何问题。
我错过了什么?

with eclipse I dont have any issues with debugging my app. did I miss something?

推荐答案

这发生在我更新到1.4所有的时间之后。
我总是杀死服务器,并与下面的命令重新启动它。

This happens to me after updating to AS 1.4 all the time. I always kill the server and restart it with following commands.

# /path/to/android-sdk/platform-tools/adb.exe
adb.exe kill-server
adb.exe devices
>>> * daemon not running. starting it now on port 5037*
>>> * daemon started successfully*
>>> * 2100000020000001     device

然后我可以用调试器重新连接。结果
如果添加adb.exe到PATH变量可以运行内置的Andr​​oid中工作室终端的命令。

Afterwards I can reconnect with the debugger.
If you add adb.exe to the PATH-variable you can run the commands from the built in terminal in Android-Studio.

这篇关于Android的工作室调试错误"连接被拒绝"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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