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

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


当前回答

这该死的奇怪,但只要把USB端口插入我2014年年中的MBP上的Thunderbolt端口旁边的Retina就可以了!

另一个USB端口根本无法识别设备。

其他回答

在LG G3上,我能够通过homebrew安装ADB(在MAC OS X上安装ADB),然后禁用/启用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上没有任何用处,但是我做了所有的步骤,它工作得很好。

对于更新的adb版本,你必须删除~/.android/adb_usb.ini

我已经看到这个问题,并尝试了stackoverflow和其他网站上的每一个解决方案,但没有帮助我。我重启了adb,打开了developer模式,激活了usb调试,卸载了samsung kies,甚至把usb线换到了不同的端口。 但后来我在某处读到,不同的usb线连接笔记本电脑或电脑时使用不同的引脚。 所以我用不同的usb线连接我的三星手机到mac ..我发誓,这是有效的…对我来说……

万一你像我一样,上面这些方法都不管用,我想出了一个非常愚蠢的解决办法。

我在2011年的Macbook Pro电脑上使用的是HTC One X。我刚刚在设置中禁用了近场通信>无线和网络>更多>近场通信和中提琴!工作正常。