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:
- 重新安装JDK 6 + 7
- 确保港口8600+与使用kill打开。
- 重新安装Android的工作室,并配置一定SDK的位置。
- 添加调试的真正的调试版本类型。
- 重启手机用USB调试启用。
- 重启Android的工作室和我的MAC。
- 试图与构建变量调试和发布。
- 在模拟器我有同样的问题。
与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变量可以运行内置的Android中工作室终端的命令。
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.