android studio 无法连接到调试设备

android studio 无法连接到调试设备

问题描述:

Android Studio 无法连接到调试设备.

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'

在变量中

我的 Android 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

i use OS X

在android studio中:工具->android->启用 adb 集成(这应该被选中)取消选中这个,然后再次检查.这解决了我这个问题.(它重新启动 adb 集成)

in android studio: tools->android->enable adb integration(this should be checked) uncheck this, then check again. this solved me this problem. (it restarts the adb integration)