Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
238 views
in Technique[技术] by (71.8m points)

android - Nexus 5 will not show in Eclipse

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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)Androidandroid-sdkplatform-tools

Do a cd C:Program Files (x86)Androidandroid-sdkplatform-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..


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...