Nexus 5 will not show in Eclipse

user3164083 picture user3164083 · Jan 27, 2014 · Viewed 22.2k times · Source

My new Nexus 5 will not show in Eclipse. I have tried every single solution on the internet for the last 3 hours. I have windows 8, not 8.1. I have a new HP Envy laptop. I am under a tight time-frame and need to get developing with this phone.

Allow usb debugging is checked. The drivers are up to date and downloaded from the Android developer site for Nexus 5. I have then gone into device manager and right-clicked -> update drivers -> browse -> gone to that usb-driver file in Android sdk, made sure include sub-directories is checked, then click finish. It installs. They are already up to date. Tried selecting choose from list. then selcting MTP USB device and installing. That's the only one that shows up as compatible for me.

I have switched from MTP USB connection to PTP USB connection.

I have reset the adb in the DDMS.

I have found my hardwareId in Device Manager and then added the correct lines of code into the android_winusb.inf file.

I have gone into Android SDK manager, and under extras installed "Google USB driver". Mine is rev 8. Is that okay?

After all that I have restarted my computer and the phone.

My phone has always been recognised by my computer without doing anything. It is just Eclipse that needs to recognise it.

UPDATE: Originally I was finding my Nexus 5 in the device manager under portable devices and when i updated drivers from here it had no effect. Just then it popped up under "Other" and i updated the drivers with some i found recommended online but it said at the end "Samsung drivers installed" and this is LG. Then now I see my Nexus popping up under "Android device" in the device manager. EDIT Actually it says Android composite ADB interface. My Nexus is not under "Other" anymore. It is only under portable devices. Now my phone is showing up in Eclipse. But it is status offline, and When i click to run my app, it is there, but i cannot press "OK", and the target is unknown with a warning. Maybe the solution now is to double check i download correct drivers, ones that don't say "Samsung".

Thanks.

Answer

Aakash picture Aakash · Jan 27, 2014

Try these steps and see if the device is recognized.

First check if you have Developer Options in the Settings Menu of your device.

If not - (Please know that in flagship nexus devices running 4.2 and later Android OS this option is hidden by Google on purpose)

How to Enable developer options - Go to Settings --> About Phone --> Build Number (Tap the build number 7 times) this should enable your Developer Option

Turn on USB Debugging

Connect your Nexus 5 to your computer using the USB cable.

If at this point Eclipse do not recognize it. Try to start a command prompt on Windows by pressing Ctrl + R and type cmd and enter.

Navigate to where you have installed your Android SDK folder where you have your adb.exe.

For me this is at C:\Program Files (x86)\Android\android-sdk\platform-tools\

Do a cd C:\Program Files (x86)\Android\android-sdk\platform-tools - enter

then type adb devices while your nexus 5 is attached to your computer. this should restart the adb server killing any stale session. At this point you should receive instructions on your device about RSA fingerprint etc. Just accept it and Eclipse should be able to communicate with your device.

Edit:

You may need to install adb drivers after following aforementioned procedure. Download universal adb driver installer from here and execute it. It would automatically detect your phone model and will install drivers.

Happy Coding..