无法将 DDMS 连接到 HTC 设备

发布于 2024-12-17 08:54:30 字数 500 浏览 1 评论 0原文

无法使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

冰魂雪魄 2024-12-24 08:54:30

从 ADT 15 开始,我的 DDMS 和 DroidX 经常遇到同样的问题。单独终止并重新启动 adb 也无法解决我的问题。

我的问题的症状与您的类似:我在设备列表中看到我的设备有 10 或 15 次迭代,所有这些都表示它们未连接或类似的情况。

我的修复步骤:

  1. 断开设备与 USB 的连接。
  2. 在命令行上运行adb Kill-server
  3. 在命令行上运行adb start-server。等待守护进程启动。
  4. 重新连接设备。

重新连接设备后,您应该能够运行 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:

  1. Disconnect the device from USB.
  2. Run adb kill-server on the command line.
  3. Run adb start-server on the command line. Wait for the daemon to start.
  4. Reconnect the device.

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!

一梦浮鱼 2024-12-24 08:54:30

http://developer.android.com/tools/extras/oem-usb .html#Win7

您所需要的只是升级计算机上设备的驱动程序。
尝试类似的东西:

首次在 Windows 7 上安装 Android USB 驱动程序:

  • 将 Android 设备连接到计算机的 USB 端口。
  • 在桌面或 Windows 资源管理器中右键单击“计算机”,然后选择“管理”。
  • 在左侧窗格中选择“设备”。
  • 在右侧窗格中找到并展开“其他设备”。
  • 右键单击设备名称(例如 Nexus S)并选择更新驱动程序软件。这将启动硬件更新向导。
  • 选择“浏览我的计算机以查找驱动程序软件”,然后单击“下一步”。
  • 单击“浏览”并找到 USB 驱动程序文件夹。 (Google USB 驱动程序位于 \extras\google\usb_driver。)
  • 单击“下一步”安装驱动程序。或者,使用新驱动程序升级 Windows 7 上的现有 Android USB 驱动程序:

将 Android 设备连接到计算机的 USB 端口。
- 在桌面或 Windows 资源管理器中右键单击“计算机”,然后选择“管理”。
- 在“计算机管理”窗口的左窗格中选择“设备管理器”。
- 在右侧窗格中找到并展开 Android 手机。
- 右键单击​​ Android Composite ADB Interface,然后选择更新驱动程序。这将启动硬件更新向导。
- 选择从列表或特定位置安装,然后单击下一步。
- 选择搜索这些地点的最佳司机;取消选中“搜索可移动媒体”;并选中在搜索中包含此位置。
- 单击“浏览”并找到 USB 驱动程序文件夹。 (Google USB 驱动程序位于 \extras\google\usb_driver。)
- 单击“下一步”升级驱动程序。

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 :

To install the Android USB driver on Windows 7 for the first time:

  • Connect your Android-powered device to your computer's USB port.
  • Right-click on Computer from your desktop or Windows Explorer, and select Manage.
  • Select Devices in the left pane.
  • Locate and expand Other device in the right pane.
  • Right-click the device name (such as Nexus S) and select Update Driver Software. This will launch the Hardware Update Wizard.
  • Select Browse my computer for driver software and click Next.
  • Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.)
  • Click Next to install the driver. Or, to upgrade an existing Android USB driver on Windows 7 with the new driver:

Connect your Android-powered device to your computer's USB port.
- Right-click on Computer from your desktop or Windows Explorer, and select Manage.
- Select Device Manager in the left pane of the Computer Management window.
- Locate and expand Android Phone in the right pane.
- Right-click Android Composite ADB Interface and select Update Driver. This will launch the Hardware Update Wizard.
- Select Install from a list or specific location and click Next.
- Select Search for the best driver in these locations; un-check Search removable media; and check Include this location in the search.
- Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.)
- Click Next to upgrade the driver.

所有深爱都是秘密 2024-12-24 08:54:30

试试这个:关闭 eclipse,使用 adb Kill-server 从命令行停止 adb 进程,重新启动 eclipse 项目。

Try this: Close eclipse, stop adb process from command line with adb kill-server, relaunch your eclipse project.

你的笑 2024-12-24 08:54:30

如果计算机端没有像其他人建议的那样工作(断开设备,杀死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...

云柯 2024-12-24 08:54:30

我在使用 HTC One 和 Windows 7 时遇到了此问题。我的设备在设备管理器中显示为“便携式设备”>“宏达一号。我可以使用资源管理器访问它并查看文件,但无法建立 ADB 连接。

我解决这个问题的方法是,设备管理器>右键单击我的设备>属性>驱动程序选项卡>更新驱动程序> “浏览我的计算机以查找驱动程序软件”> “让我从计算机上的设备驱动程序列表中进行选择”(在对话框底部)...

有两个选择:

MTP USB 设备
USB Composite Device

选择USB Composite Device,然后单击Next,过了一会儿,驱动程序安装完毕,设备就出现在DDMS中,我什至不需要重新启动ADB。

请注意,我已安装并更新了 HTC Sync Manager 软件,但未运行,并且在我的 HTC One 中打开了开发人员模式和 USB 调试。

很棒的手机!连接很痛苦:)

这是驱动程序选择屏幕的图片,您可以在其中选择 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 :)

Here is a picture of the driver selection screen where you can choose USB Composite Device

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文