I have a HP Slate 21 that is connected to my Windows box using a USB cable.

设备上已打开USB调试开关。

将正确的%SingleAdbInterface%和%CompositeAdbInterface%条目添加到android_winusb。inf文件,我现在看到“Android ADB接口”在我的设备管理器。 但是,在命令行中运行adb devices不会显示设备。

我还有一款惠普7系列产品,在adb设备下显示得很好。

我从设备管理器中看到的唯一区别是,一个是“Android复合ADB接口”,另一个是“Android ADB接口”。

还有一个微妙的区别。在winusb中。inf文件,对于Slate 7,我有两个%CompositeAdbInterface%条目定义,但对于Slate 21,只有一个%CompositeAdbInterface%条目定义。

如何使用adb devices命令查看我的设备?


当前回答

单击“附加调试器到Android进程”,单击“重新启动ADB”。

其他回答

在尝试了所有的解决方案,仍然没有找到一个解决方案,我推断问题的USB电缆(s)。

由于它有时对我有用(比如在工作时),但有时却不行(比如在家里),我决定尝试不同的电缆和不同的安卓手机。果不其然,这些手机的一些连接线都不工作(adb看不到手机),但他们仍然给手机充电,Android识别出它是插入的。

良好的电缆显然为手机充电,并立即被adb识别出来。这是一个非常明显的区别。

我无法从物理上区分这些数据线,但它们都是我多年来收集的免费USB数据线。

和其他android设备一样,新的Yuntab也需要去设置> about,然后点击构建号来启用开发者状态。

我遇到过类似的问题,并通过以下步骤解决了问题:

Disconnect device, and ensure to turn off developer options on the android device (if was previously turned on). Connect the device via USB. Turn on developer options on the android device. Enable check box for stay awake. Enable check box for USB debugging. Open cmd (or MacOS' console), and cd where your adb executable is. Should be in SDK's platform-tools, which you can get from official-site: https://developer.android.com/studio. Finally, run the commands: adb kill-server adb start-server adb devices

现在我们可以看到附加设备。

请注意,通过执行上述步骤,在大多数情况下,usb连接模式将自动设置为MTP(媒体传输协议),但如果它没有自动发生,请尝试手动设置。 此外,如果上述步骤对您不起作用,请尝试购买新的usb电缆,然后重试上述步骤(使用“新的usb电缆”)。

所以上面提到的方法对我没用。对我来说,有用的是在谷歌上搜索三星Galaxy Tab USB驱动程序,下载并运行应用程序,让我的设备在我使用adb设备时得到识别。因为我用的是三星Galaxy,所以我用这个链接从三星官方网站下载了usb驱动程序。你会想谷歌自己的android型号usb驱动程序

http://www.samsung.com/us/support/owners/product/SCH-I925EAAVZW

After downloading it, I ran the application to install my usb driver and then did adb devices. Make sure your Google USB driver from the Android SDK is downloaded and that your sdk is up to date as well. Also, make sure that your USB debugging mode is enable by going to Settings -> Developer Options -> then checking USB debugging. After all this, your device in the Device Manager should not have a yellow exclamation point next to it. When you run adb devices your device should show up. Hope this helps people. I literally spent hours trying to figure this out. Hopefully my answer could save you guys the hours I spent googling.

对我来说,解决方案是从SDK管理器中安装de driver:

http://visualgdb.com/KB/usbdebug-manual/