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

其他回答

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

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

确保您的设备没有连接为媒体设备。

我也有同样的问题,我尝试使用这个帖子上发布的所有可能的解决方案,但我发现我有和JohnnyFun解释的一样的问题,但根据HenrikB解决方案,我在我的三星Galaxy S6手机(Android 6.0.1)中找不到任何设置选项

设置->存储->菜单-> USB计算机连接

我终于明白-当我的手机通过充电器连接下拉菜单时,我看到了像-这样的选项

然后点击“连接充电”>>>,你会看到>>等选项

你可以把选项改为“传输媒体类型文件”

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

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

或者从命令行:

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