无法将 DDMS 连接到 HTC 设备
无法使用 Android Eclipse 插件在设备上进行调试。
一旦我按下调试按钮,DDMS 就会开始循环并显示以下消息:
[2011-11-21 XX:41:05 - DeviceMonitor]Sending Tracking request failed!
[2011-11-21 XX:41:05 - DeviceMonitor]Adb connection Error:EOF
Closed eclipse and restarted without firewall, no lucky.
在命令行中测试“adb devices”,显示连接的设备。
驱动程序已安装。
调试模式已启用。
在清单中可调试设置为 true。
更新:
尝试从 android 工具文件夹启动 ddms.bat,行为相同。
似乎还有其他人遇到了此问题,其中大多数人将此报告为 HTC 驱动程序的问题。虽然已经更新到最新版本了,但是还是不行。
Cannot debug on device using android plugin for eclipse.
Once I push the debug button, DDMS starts looping with this message:
[2011-11-21 XX:41:05 - DeviceMonitor]Sending Tracking request failed!
[2011-11-21 XX:41:05 - DeviceMonitor]Adb connection Error:EOF
Closed eclipse and restarted without firewall, no luck.
Tested "adb devices" in command line, the connected device is shown.
Drivers are installed.
Debug mode is enabled.
Debuggable set to true in manifest.
UPDATE:
Tried starting ddms.bat from android tools folder, same behaviour.
Seems that there are other people having trouble with this, and most of them are reporting this as an issue with HTC drivers. Despite having updated to the most recent version, it still doesn't work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
从 ADT 15 开始,我的 DDMS 和 DroidX 经常遇到同样的问题。单独终止并重新启动 adb 也无法解决我的问题。
我的问题的症状与您的类似:我在设备列表中看到我的设备有 10 或 15 次迭代,所有这些都表示它们未连接或类似的情况。
我的修复步骤:
adb Kill-server
。adb start-server
。等待守护进程启动。重新连接设备后,您应该能够运行
adb devices
并在结果中仅看到一台设备。你应该可以走了!I regularly have this same problem with DDMS and my DroidX as of ADT 15. Killing and restarting adb alone does not fix my problem either.
The symptom of my issue is similar to yours: I see 10 or 15 iterations of my device in the devices list all of which say they are not connected or something to that effect.
My procedure to fix it:
adb kill-server
on the command line.adb start-server
on the command line. Wait for the daemon to start.Having reconnected the device, you should be able to run
adb devices
and see only one device in the results. You should be good to go!http://developer.android.com/tools/extras/oem-usb .html#Win7
您所需要的只是升级计算机上设备的驱动程序。
尝试类似的东西:
http://developer.android.com/tools/extras/oem-usb.html#Win7
All you need is an upgrade to the drivers of your device on your machine.
Try out something like :
试试这个:关闭 eclipse,使用
adb Kill-server
从命令行停止 adb 进程,重新启动 eclipse 项目。Try this: Close eclipse, stop adb process from command line with
adb kill-server
, relaunch your eclipse project.如果计算机端没有像其他人建议的那样工作(断开设备,杀死adb close eclipse等...)尝试将设备调试模式设置为关闭设置->应用程序->开发->USB调试
一两秒后重新打开它,这通常对我有用......
If the computer side not working as others suggested (disconnect the device, kill adb close eclipse etc...) try to set the device debugging mode to off settings->applications->development->USB debugging
after a second or two turn it back on, thats usually do the trick for me...
我在使用 HTC One 和 Windows 7 时遇到了此问题。我的设备在设备管理器中显示为“便携式设备”>“宏达一号。我可以使用资源管理器访问它并查看文件,但无法建立 ADB 连接。
我解决这个问题的方法是,设备管理器>右键单击我的设备>属性>驱动程序选项卡>更新驱动程序> “浏览我的计算机以查找驱动程序软件”> “让我从计算机上的设备驱动程序列表中进行选择”(在对话框底部)...
有两个选择:
MTP USB 设备
USB Composite Device
选择USB Composite Device,然后单击Next,过了一会儿,驱动程序安装完毕,设备就出现在DDMS中,我什至不需要重新启动ADB。
请注意,我已安装并更新了 HTC Sync Manager 软件,但未运行,并且在我的 HTC One 中打开了开发人员模式和 USB 调试。
很棒的手机!连接很痛苦:)
I had this problem with HTC One and Windows 7. My device shows in Device Manager as Portable Devices > HTC One. I could access it with Explorer and see files but not make an ADB connection.
The way I resolved this was, Device Manager > Right Click my device > Properties > Driver tab > Update Driver > "Browse my computer for driver software" > "Let me pick from a list of device drivers on my computer" (at bottom of dialog) ...
There are two choices:
MTP USB Device
USB Composite Device
Select USB Composite Device and click Next, after a while the driver was installed and the device showed up in DDMS, I didn't even need to restart ADB.
Note that I have HTC Sync Manager software installed and updated but not running, and developer mode and USB debugging are turned on in my HTC One.
Great phone! Pain to connect :)