omega
omega

Reputation: 43833

Eclipse not recognizing my android phone - says target unknown

I am using the ADT eclipse for android development. I connected my phone then ran eclipse. Then when I run my android project, I get the window asking how you want to run it. I can see my phone listed there, but its not recognizing its target version.

As a result I am unable to run it on my phone. This is happening sometimes before, and now more often than usual.

Does anyone know how I can fix this?

enter image description here

Upvotes: 4

Views: 5354

Answers (3)

larsac07
larsac07

Reputation: 71

For others still experiencing trouble having checked the connection mode, try these proposed solutions in the stated order till you get it working:

  1. Check whether USB debugging is enabled. Try disabling it and enabling it again. Can't find this option? Settings > Developer options > USB debugging. Can't find Developer options? Settings > About (phone) > Tap 7 times on Build Number
  2. Try a different cable (some users have experienced being able to charge, but not transfer data or charge and transfer data, but not get recognized by ADT)
  3. Reboot phone
  4. Reboot computer
  5. Check your USB driver, especially if you're running Windows or Linux. On Windows, install Google USB driver from sdk-manager, then: Device Manager > Find and right-click phone (usually under 'Portable devices') > Update driver software > Browse my computer for driver software > adt-folder-location/sdk/extras/google/usb-driver. For further info, read up on http://developer.android.com/tools/device.html#setting-up. (The "Setting up a Device for Development"-part)
  6. Download and use a separate ADT
  7. Try using Android studio
  8. Try finding and using an older ADT
  9. Try using a different computer
  10. Wait for next ADT update and quietly weep...

Upvotes: 0

Yogesh Birla
Yogesh Birla

Reputation: 1

Its the camera made that works. I tried it for google nexus 4 and turning it to camera mode worked for me. Here is the path where you can find the setting for nexus mobiles: Settings > Device > Storage > Menu > USB computer connection

Upvotes: 0

Alec Teal
Alec Teal

Reputation: 5918

Yes it's a weird one but you know how phones have "media" and "camera" mode and such, change that to "media" if I recall correctly, or "camera", it's something along those line! It was my old phone sorry, but this solved it!

Alec

Upvotes: 5

Related Questions