在Mac上进行Android开发时,我的这部新手机并没有出现在adb的设备列表中。很多其他的手机和设备对我来说都很好,所以我知道我的设置是好的。

我在手机上启用了调试(设置—>应用程序—>开发—> USB调试),但当我运行adb设备时,它不显示


当前回答

以我为例,我的设备上没有启用USB调试,但将设备连接到macbook上时,屏幕上并没有弹出熟悉的“允许USB调试”对话框。

其他回答

我试图连接一台旧手机,我用它来测试旧API版本上的应用程序。今天,亚行没有发现这一点。

在这里尝试了几乎所有的东西之后,我发现手机甚至没有显示USB连接正在进行的系统通知。

所以我四处寻找这个问题,并在这里找到了解决方案(出处出处):

Remove phone from PC and remove battery to shut off phone. Plug USB cable into PC. Plug USB cable (other end) into phone. The PC install new hardware appropriate drivers for a few minutes (phone without battery) Unplug USB cable from phone Put battery back in and turn on phone As the phone boots, hold down Volume up and down. Phone boots into safe mode. Plug USB cable into phone. I saw notification about USB MTP-connecting on the phone. PC have found my phone! After the reboot in normal mode problem was fixed

不确定第四步。在macOS上没有任何用处,但是我做了所有的步骤,它工作得很好。

这只是一个额外的帮助:设备需要直接连接到计算机,将其连接到USB集线器可能会阻止设备提示显示。

在启用开发人员模式后重新启动我的一加5T。

信不信由你,换USB线帮我解决了这个问题。我一直在用一个随机的Android设备(它不起作用),但当我换到一个真正的Android设备上时,它就起作用了。

另一个好的电缆起作用的迹象是,Android文件传输应用程序立即上线,而蹩脚的电缆却没有做到这一点。

此外,确保你在供应商的网站上查看他们的“USB”驱动程序。我的AT&T Galaxy Note(运行Android 2.3.6)遇到了这个问题,如果没有从三星网站上获得的驱动程序安装,adb无法识别。