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命令查看我的设备?


当前回答

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

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电缆”)。

其他回答

从手机中取出电池,等待10秒,重新添加并再次尝试(与开发人员选项一起)。在其他问题中)

我尝试了所有其他的答案,但除了其他建议之外,这是必须的。

不管怎样,我在Windows7电脑上安装ADB驱动程序时遇到了问题。原来病毒扫描“访问保护”阻止(仅部分)驱动程序正确安装。拔下USB,从设备管理器中卸载三星设备,禁用VS访问保护,重新插入USB,一切正常。浪费了一个小时,希望能帮你省下一个小时。

我的ubuntu也有同样的问题。当我运行命令adb devices时,它会显示??????????没有权限。

然后我尝试了adb kill-server,然后sudo su和adb设备。无需执行命令adb start-server devices命令,如果未启动,将自动启动。

希望这能节省一个人的时间。

对于WINDOWS用户,请按照此处的说明操作。 https://software.intel.com/en-us/xdk/docs/installing-android-debug-bridge-adb-usb-driver-on-windows

基本上,MTP/PTP都不需要。您需要按照页面截图中的说明从设备管理器配置您的设备。

希望能有所帮助。

我的“小米红米Note 4”也有类似的问题,我尝试了在网上找到的近10个解决方案,但没有一个对我的情况有帮助。我发布这个答案是为了帮助像我这样的人。

安装“Intel USB Driver for Android Devices”完全解决了我的问题。这里有完整的描述。