ADB No Devices Found

2019-01-04 17:00发布

I am attempting to install an Android app on my brand new Nexus 10. I have a .apk file. I have downloaded the Android SDK, installed "Android SDK Tools", "Android SDK Platform-tools", and Google USB Driver. I have checked the setting on my Nexus 10 for "Unknown Sources".

When I run "adb devices" from the command terminal, it doesn't list any devices. I attempted to follow this recommendation, because it was identical to a suggestion I had previously found here on Stack Overflow. After following those steps, "adb devices" still returns an empty list and to make it worse, when I connect my Nexus 10 to my PC, Windows doesn't show any folders within the device.

I have undone the steps in that link, along with everything else I have done so far, as well as uninstalling my Nexus 10 from Device Manager and reinstalling it, but I am still not seeing any folders in the device.

Is there anything I am missing to get my device to show up in ADB devices?

What can I do to get Windows to see the folders within the device?

标签: android adb
30条回答
Bombasti
2楼-- · 2019-01-04 17:07

Use another cable.

Just found out that one of my regular charging cables had Vcc, Gnd pairs, but no Data+, Data-.

https://en.wikipedia.org/wiki/USB#Pinouts

查看更多
小情绪 Triste *
3楼-- · 2019-01-04 17:07

To have ADB in MTP mode

If you don't find any ADB device (nothing with exclamation mark) in the device manager (with all developers settings on phone checked), do this:

In Device Manager :

UpdateDriver->Manuel Install->Search on my computer->Select from installed driver list -> then select the one with the word usb in it (not MTP).

Edit: after that, you'll then have 2 or 3 peripheral, one for USB and one for ADB, install adb driver using usual method (see first answers)

查看更多
倾城 Initia
4楼-- · 2019-01-04 17:09

Sometimes ADB loses connection to the device, and needs to be reset. If you have everything else working (ie USB driver installed, Developer settings enabled on the device), and still can't see your device, you need to reset the ADB process.

This is available in the DDMS Perspective (from within Eclipse), Devices tab (the triangle on the far right includes a menu item to perform the reset).

Otherwise from the command line, you can reset it with the following 2 commands:

adb kill-server

then

adb start-server
查看更多
Explosion°爆炸
5楼-- · 2019-01-04 17:09

I have just solve this problem in my Mac OS X, it is not about device driver or device cable.

You must enable "developer options" and enable "USB debugging"

Please refer CyanogenMod wiki "Device not found" errors and Doc: developer options

查看更多
时光不老,我们不散
6楼-- · 2019-01-04 17:09

Edit: I recommend you DO NOT run ADB under VirtualBox if you are using a Windows Host. Somehow I got VirtualBox to lock the device drivers on the host, eventually making it so that the ADB wouldn't work on the client nor the host for any device I plugged in. To fix, I removed VirtualBox extensions on the host and ran http://www.nirsoft.net/utils/usb_devices_view.html to delete the incorrect drivers. I could not get the correct drivers to load while VirtualBox extensions were installed, and this problem was a complete bastard to diagnose and fix.

Edit 2: Also the following is probably out of date, now that Google have released an integrated ADB extension for Chrome.

What an installation nightmare... Here are the steps I needed to get my Nexus 10 recognised on an XP virtual machine running under VirtualBox:

  • If you get asked to install Nexus 10 drivers, make sure to untick "don't ask again" (you WANT to be asked again!).
  • Plug in the Nexus 10 USB connection
  • Turn on debugging in the Nexus 10 settings Developer menu (tap "About Tablet" 7 times to get that menu).
  • In your virtual machine settings (host), add the samsung Nexus 10 device to the USB Device Filters (important - selecting it from the devices menu didn't seem to work).
  • In guest install java jre (if you don't have java installed). In Control Panel, change Java settings so that java doesn't run in the browser (to help prevent security issues).
  • In guest get the adk zip file and put it somewhere permanent. I needed to delete the .android config directory from the user directory because I moved the directory.
  • Run the SDK Manager.exe - if it doesn't work, try running sdk\tools\android.bat which seems to give better error reporting.
  • From SDK Manager install the Google USB driver package.
  • Unplug the Nexus 10 and plug it in again, and install the Google USB driver package.
  • Restart the guest.
  • running c:>[...]\sdk\platformtools> adb devices finally shows me the device...
查看更多
Animai°情兽
7楼-- · 2019-01-04 17:09

Normally SDB will download the driver in the **android-sdk-windows\extras\google\usb_driver** path

Here are the steps that worked for me:

  1. Enable USB debugging.
  2. Do to device manager, right click on ADB device and click update driver software.
  3. Select "Browse my computer for Driver Software"
  4. Select "Let me pick from list of Device drivers on my computer"
  5. Click on "Have Disk" option.
  6. Select the driver path **android-sdk-windows\extras\google\usb_driver** (path of sdk) 7.Select 1st driver out of list of drivers shown.

And hopefully, it will work.

查看更多
登录 后发表回答