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 7.1 Nougat(在我的情况下,Moto G)上,手动在开发者选项中重新启用USB调试可以实现:

>开发人员选项> USB调试

PS C:\> adb devices
List of devices attached
myDeviceNumber      device

其他回答

你安装新设备后是否重置过adb ?

或者从命令行:

如果正在运行,请关闭Eclipse 在命令提示符中进入Android SDK platform-tools目录(好吧,你知道这个,我知道!) 输入adb kill-server 然后输入adb start-server 读取,如果有一些错误,否则重试adb设备

看来安装的驱动程序状态不佳。以下是我如何做到的:

从设备管理器中删除设备。 重新扫描硬件更改。 列表项“Slate 21”将显示为“未知驱动器”状态。 点击“更新驱动程序”,选择/extras/谷歌/usb_driver

设备管理器将找到驱动程序并警告您安装它。选择“是”。 这一次,设备安装正确。

注意,我不需要修改winusb。Inf文件或更新任何其他驱动程序。

希望这能有所帮助。

所以上面提到的方法对我没用。对我来说,有用的是在谷歌上搜索三星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.

在Galaxy s6中-我通过:设置->关于设备->软件信息->构建号-点击7次以启用开发人员选项。返回设置->开发人员选项->打开USB调试。

回到您的终端adb设备,您应该会看到连接的设备。希望这能有所帮助。

在windows配置中,进入设备管理。检查是否看到了您的设备,以及是否安装了驱动程序。您的设备可能没有安装正确的驱动程序。