1.检查手机是否打开了usb调试:
手机设置 -> 开发者选项 -> 选择usb调试
重新连接手机,还是不能连接请看第2步
2.
linux系统或者mac os
如果出现上面的问题,而且有且只有Connection attempts: 1 ,这一条链接信息,目前的解决方法就是重启eclipse。
如果出现的是
[2015-05-27 10:31:48 - DeviceMonitor]Adb connection Error:EOF
[2015-05-27 10:31:48 - DeviceMonitor]Connection attempts: 1
[2015-05-27 10:31:49 - DeviceMonitor]Connection attempts: 2
可以执行下面的命令解决
命令行下
MBP:xxx$ adb kill-server
MBP:xxx$ adb devices
如果执行上面的命令后,没有下面的信息输出,重新执行一遍
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
* daemon started successfully *
List of devices attached
40538f6fdevice