Sunday, April 7, 2013

NEXUS 4 device not detected in ADB devices list, eclipse, android development

If this is the first time you are trying to connect your NEXUS 4 (or any other google device) to eclipse for application deployment then you need to do following steps in order to have successful driver installation. (Sources: Multiple posts on stack overflow and other user-community)

1. Open 'SDK Manager' (from 'adt-bundle' directory).
2. Go to the bottom of list and install 'Google USB driver'.
3. In case you have already tried to install USB driver for your device then we first need to uninstall them. Go to device manager (right click "My Computer" > Device Manager). Then select "<device name>" from Portable devices tab. Right click and select uninstall driver.
4. Now on your phone, enable USB debugging. To enable, Go to "about phone", tap 7 times on "build number".
5. Connect phone to your machine and after connection, select "CAMERA (PTP)" on phone. This is important.
6. System will install the driver for the new device.
7. Again go to device manager and select the <device name> device under "Portable devices" tab. Select 'Update Device driver' and provide the manual path to search for driver. Path is : <android-sdk-directory>\extras\google\usb_driver.
8. Let it install the driver and android composite driver will be installed on your device.
9. Now open eclipse and start deploying apps to your phone.



9 comments:

  1. Excellent and very useful post.Thanks for great work.

    android app developers india

    ReplyDelete
    Replies
    1. Thanks for sharing your tips it really helped me to reinstall in my device manager.

      Portable Caries Detection Device

      Delete
  2. Thanks. What a pain to have to know to open the camera.

    ReplyDelete
  3. Thank you so much! Step 5 is stupid, but it really helped me. Strange it was working a few days ago in MTP mode...

    ReplyDelete
  4. Thak you so much!! this small-tutorial really helped me. Thanks from Sevilla (Spain)

    ReplyDelete
    Replies
    1. Thanks!! Please feel free to add any other step you might need to get this working.

      Delete
  5. still its not recognizing please help on this...

    ReplyDelete
  6. My Device Manager has the Nexus4 as an "Android-Device" AND as "Portable Device". Unistalling and Updating the driver on both helped!

    ReplyDelete