Android Studio无法连接到调试设备。
当我单击“调试”按钮时,“调试”选项卡将显示
Connecting to the target VM, address: 'localhost:8600', transport: 'socket'
在变量中
当我再试一次时,它告诉我
12:14:44 Error running Android Debugger (8600): Unable to open debugger port : java.io.IOException "handshake failed - connection prematurely closed"
然后调试选项卡显示以下内容
Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'
在变量中
我的Android Studio版本是0.4.4 #AI133-1005886
这个问题已经困扰我很长一段时间了。
我使用OS X
发布于 2016-11-23 22:13:21
我修改了我的/etc/hosts文件,并确保这3行位于文件的底部:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
发布于 2015-07-24 16:09:45
这就是我解决同样问题的方法:(1)移除或断开你的手机!(2)重新连接你的手机!
发布于 2015-08-09 18:58:12
我只需重启我的Android工作室就解决了这个问题
https://stackoverflow.com/questions/21745143
复制相似问题