【问题标题】:Can not see my Android HTC even though it is connected即使已连接,也看不到我的 Android HTC
【发布时间】:2015-04-23 21:48:26
【问题描述】:

我有一台 HTC,我将它插入运行 Yosemite 的 Mac。我可以在手机中看到“USB 网络共享”。但是,我在 Eclipse 的“设备”视图中看不到它。

我尝试重新启动 adb,但失败了。我在控制台中看到了这个:

[2015-02-22 15:35:57 - DeviceMonitor] Adb connection Error:EOF
[2015-02-22 15:35:57 - ddms] '/Users/Jim/android-sdk-macosx/platform-tools/adb,start-server' failed -- run manually if necessary
[2015-02-22 15:35:57 - DeviceMonitor] Connection attempts: 1
[2015-02-22 15:35:58 - DeviceMonitor] Connection attempts: 2
[2015-02-22 15:35:59 - DeviceMonitor] Connection attempts: 3
[2015-02-22 15:36:00 - DeviceMonitor] Connection attempts: 4
[2015-02-22 15:36:01 - DeviceMonitor] Connection attempts: 5
[2015-02-22 15:36:02 - DeviceMonitor] Connection attempts: 6
[2015-02-22 15:36:03 - DeviceMonitor] Connection attempts: 7
[2015-02-22 15:36:04 - DeviceMonitor] Connection attempts: 8
[2015-02-22 15:36:05 - DeviceMonitor] Connection attempts: 9
[2015-02-22 15:36:06 - DeviceMonitor] Connection attempts: 10
[2015-02-22 15:36:07 - DeviceMonitor] Connection attempts: 11
[2015-02-22 15:36:22 - DeviceMonitor] Adb connection Error:EOF
[2015-02-22 15:36:22 - DeviceMonitor] Connection attempts: 1
[2015-02-22 15:38:09 - DeviceMonitor] Adb connection Error:EOF
[2015-02-22 15:38:09 - DeviceMonitor] Connection attempts: 1

如何查看设备中列出的我的手机,以便我可以运行应用程序?

【问题讨论】:

    标签: android eclipse debugging adt


    【解决方案1】:

    首先,您应该确保已启用 USB 调试。在设置→开发者选项中,勾选“USB调试”选项。

    要在“设置”菜单中显示开发者选项,请转到“设置”→“关于”,然后多次单击内部版本号(在 HTC 上,您可以在“软件信息”→“更多”中找到它。

    然后,如果这不能解决问题,您应该尝试重新启动 adb。这通常可以解决问题。为此,请打开终端并执行以下命令:

    adb kill-server
    adb start-server
    

    您可以通过运行以下命令来验证您的设备是否被 adb 识别:

    adb devices
    

    如果一切正常,您应该会在结果列表中看到您的 HTC 设备。

    如果不这样做,您应该仔细检查 udev 规则文件以确保 HTC 设备的规则设置正确。

    【讨论】:

    • 这样做了,它只出现了 2 秒,然后就消失了
    猜你喜欢
    • 1970-01-01
    • 2012-09-29
    • 2020-09-16
    • 1970-01-01
    • 2021-07-08
    • 1970-01-01
    • 1970-01-01
    • 2012-05-16
    • 1970-01-01
    相关资源
    最近更新 更多