机器人工作室无法连接到设备调试 [英] android studio can't connect to debug devices

查看:151
本文介绍了机器人工作室无法连接到设备调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android的工作室无法连接到调试设备。

Android Studio can't connect to debug devices.

当我点击调试按钮,调试选项卡显示我

When I click the debug button, the debug tab shows me

Connecting to the target VM, address: 'localhost:8600', transport: 'socket'

变量

当我再次尝试它告诉我,

When I tried again it told me

12:14:44 Error running Android Debugger (8600): Unable to open debugger port : java.io.IOException "handshake failed - connection prematurely closed"

然后调试选项卡显示此

and then debug tab show me this

 Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'

变量

我的Andr​​oid Studio版本是 0.4.4#AI133-1005886

My Android Studio version is 0.4.4 #AI133-1005886

这个问题已经困扰我很久了。

This problem has been haunting me for a long time.

我使用OS X

推荐答案

这是我如何解决同样的问题:

This is how I solved same issue:

1),我不认为这是重要的,但我:更新所有未决的更新ADT的东西。并重新启动操作系统。但我还是无法调试

1) I don't think that it is important but I: updated all pending for update ADT stuff. And restarted OS. But I still was unable to debug

2)下一篇:我公司推出AS。打开终端,跑这样的:

2) Next: I launched AS. Opened terminal and ran this:

./adb get-state


  • 守护程序没有运行。从现在开始它在端口5037 *

  • 守护进程启动成功*

  • 正如你所看到守护进程会自动启动后,我问它的状态。所以我没有做罢了。只是试图调试,这一次调试工作。

    As you can see daemon started automatically after I asked for its state. So I did not do nothing more. Just tried to debug and this time debugging worked.

    P.S。我重新启动后AS调试工作继续。这样,在终端操作没有必要了。

    P.S. After I restarted AS debugging continued working. So there was no need in terminal manipulations anymore

    这篇关于机器人工作室无法连接到设备调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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