adb not finding my device / phone (MacOS X)

2019-01-01 08:05发布

Doing Android development on a Mac and this very new phone I have doesn't show up in the devices list in adb. Lots of other phones and devices work fine for me so I know my setup is good.

I have debugging enabled (Settings --> Applications --> Development --> USB debugging) on the phone, but it just doesn't show up when I run adb devices

标签: android adb
29条回答
弹指情弦暗扣
2楼-- · 2019-01-01 08:35

In case, like me, none of the above worked for you, I figured out a very stupid solution.

I'm using a HTC One X on a 2011 Macbook Pro. I just disabled NFC in Settings > Wireless & Networks > More > NFC and viola! Working normally.

查看更多
余生无你
3楼-- · 2019-01-01 08:39

I had a similar issue. I've discovered that MTP is not supported in OSX. I changed it to PTP, I was promoted to approve my laptop and then my device was finally listed (LG G3).

enter image description here

查看更多
几人难应
4楼-- · 2019-01-01 08:40

This only worked for me after I've enabled developer usb debugging on the phone:

On your android phone, go to Settings > About, then tap repeatedly on Build Number until Developer Options is enabled.

查看更多
萌妹纸的霸气范
5楼-- · 2019-01-01 08:40

NOTE TO FOLKS WHO CANT GET ANY OF THIS ADVICE TO WORK

Try launching Console.app and watching for errors when you plug in your device. I was getting

# The IOUSBFamily is having trouble enumerating a USB device that has been plugged in. It will keep retrying.

It persisted after reboots, so I eventually reset my PRAM and that got it working again.

HOW TO PERFORM A PRAM RESET

  1. Shut your machine down completely.
  2. Briefly hit the power button
  3. Hold down Command + Option + P + R
  4. Wait until you hear the boot chime for a 3rd time
  5. Release all keys and let the machine continue to boot completely
查看更多
皆成旧梦
6楼-- · 2019-01-01 08:40

Another tricky thing with modern Android is you set the device behavior by selecting "Use for" of the device.

If it is set as "Use for" charging for example the device won't be detected by ADB. switching to PTP/MTP other behavior which is more 'active' will auto-magically make your device detectable.

查看更多
登录 后发表回答