had the same problem with an lg phone. rebooting it (phone) worked for me
create a udev rule for your development device.
i had this same issue, and i found this post, which fixed it for me.
just download http://dl.google.com/android/repository/platform-tools_r16.0.1-windows.zip unzip it and replace your "c:\program files (x86)\android\android-sdk\platform-tools" directory with that
credit goes to hack_on
here is his post that helped me: https://stackoverflow.com/a/15000565/342497
if you cannot select the ok button when choosing a device it probably means you cant do things like adb logcat either in my experience.
i usually kill adb from task manager and it starts working. i noticed adb kill-server only sometimes works, and that there are often multiple processes called adb running... not sure if this is a bug or by design.
step 1 : rigth click on the project => properties => android => select api level that your device suport.
step 2 : restart your phone
work for me ...
had the exact same problem. working fine for over two years then all of a sudden this error pops up. the fix for me was running the sdk manager.exe located here on my machine: c:\program files (x86)\android\android-sdk turns out i did not have the ability to run on the device with android operating system 4.2.2, only 4.0.2. after the sdk updated recognition worked perfectly. turns out my phones operating system was updated and i forgot to update the sdk.
had the same problem. turns out i had changed my usb connection mode from mtp to msc. changing it back to mtp solved the problem. thanx.
i used to debug w/o problems in my htc one x, i broke the screen and until they repair it i managed to get an htc one (m7 i think it's called internally).
i was unable to debug with this same problem, what actually happened is that besides having to follow a weird procedure to make debug options appear (press 7 times in the firmware version in "about" menu) the phone was showing a message asking me to verify that the computer trying to debug on it was authorized.
i had not seen this behavior before in any the the phones i have used, not sure if this is a new functionality or simply it was not enforced on the other ones.
it is because that you didn't allow your phone to be debug by this computer.
lock your screen, unplug and plug it then unlock screen click allow in the dialog.
kitkat 4.4.2+ users, try to switch from art to dalvik or from dalvik to art. :) solved mine.
i tried different drivers, turning usb debugging on/off, rebuilding program with lower level api, killing abd and restarting. then i saw post on here regarding cable swap. changed usb cable to samsung usb cable and worked immediately.
you need to authorize the device to that computer. i was connecting the phone to my centos vm and kept getting this. i had to kill the adb server and then run it as root user. then you will get the prompt on the phone to authorize machine.
for me it worked by disabling and enabling the usb-debugging option while adb is running. thanks for all the suggestions.
i had the same problem, restarting the pc worked for me.
(debugging was already on, usb cable plugged in, fresh restart)
solution: switched usb connection from media device (mtp) to camera (ptp). when i did this it the pc installed device drivers, then phone gave me my computer's fingerprint and had a dialog concerning allow device to use usb debugging. accept. device shows up in eclipse. all good.
(on samsung note ii api 19) note: it's good habit to always try toggling the usb mode. i don't think it's the act of designating camera (ptp), but the dialogs that are generated when doing so. also, i had my phone replaced: i remember seeing this dialog before but not on this phone. maybe there's an option somewhere to enable it per device?
i had the same problem. turns out my device was prompting a dialog asking me whether i should allow connecting to my laptop or not. after clicking yes this problem went away.
the problem for me turned out to be insufficient rights of adb server.
i run android studio through remote desktop (used laptop to connect to a local, more powerful computer). apparently i didn't have all the privileges when running through remote desktop.
after stopping adb server and restarting it with root privileges solved the problem.
sudo ./adb kill-server
sudo ./adb root
turns out i had to do this just the first time. since the first time i don't have to do this anymore.
do you have a driver for your phone installed on your computer, eclipse doesn't automaticly come with drivers for phones.
my problem solved by changing the cable. nothing else worked for me.
for this problem i had tried disconnecting/reconnecting the usb cable, toggling on/off the usb debugging and relaunching eclipse with no effect. trying a different android device showed exactly the same eclipse errors, with two entries marked 'offline' and after disconnecting the usb connection it still showed one entry while nothing was connected. my problem was solved by rebooting my computer and starting again. probably ending the adb.exe programme (answer 4) would have done it too in my case.
i know this has been answered heaps of times already but if you have a galaxy s5 then the turn off and turn on of usb debugging works to resolve this problem
when the phone is plugged in and the eclipse window shows the "unknown" icon...on the phone turn off usb debugging then on again, it will then ask to allow that computer to connect, and you can say to always let it do so. then it comes up ok.
go to settings -> storage -> click on top right menu button -> usb computer connection-> check media device(mtp) is enable or not
the reason that my sch-i535 device was not being targeted... is because i had the device plugged into a usb 3.0 port. once i plugged it into a 2.0, everything began to work properly.
i tried these suggestions, but unfortunately, nothing worked.
what worked for me was:
- close eclipse
- end the adb.exe process (using windows task manager)
- restart eclipse (the device was now recognized in android device chooser)
also try this, on your phone:
- go to "usb computer connection"
- select connect as "media device (mtp)"
one simple trick works fine for me.
- disconnect device from pc
- tap revoke usb debugging authorization in phone setting
- reconnect device to pc
- tap ok for rsa authorization
check your device that
usb debugging connected
or check the following
the solution was to create a udev rule for the device. see http://developer.android.com/guide/developing/device.html#setting-up for how to setup a udev rule for your specific vendor device.
with the rule in place. eclipse was able to launch and debug.
follow these steps, if your device is recognised but the eclipse is stating it as unknown:
->go to the your android sdk directory --> go to platform-tools
this will definitely solve your problem :)
if you already installed usb driver and still your device showing as unknown then follow this solution. i had same problem with my moto g and this solution works fine for me
one solution i am aware of is to just turn off and on usb debugging on your phone. it also happens to solve a bunch of other device-not-recognized kinds of problems.
- Eclipse - Target "unknown" in Android device chooser
- Android Nougat device showing unknown target in eclipse
- Eclipse - Target “unknown” in Android device chooser
- Android 4.3 Eclipse Android Device Chooser states version unknown
- Eclipse : Target "Unknown" in android device chooser
- Eclipse - Target “unknown” in Android device chooser doesn't show sony zr(c5502)
- What does the orange triangle in the target column of Android Device Chooser window mean?
- After upgrade Android on Nexus to 4.2.2, Eclipse shows target unknown for device?
- Eclipse not recognizing my android phone - says target unknown
- Eclipse android device chooser doesn't show my phone
- Eclipse Android SDK ERROR: unknown virtual device name
- Eclipse doesn't show Galaxy Nexus in Android Device Chooser
- Android Device Chooser not showing my device but adb and Eclipse do
- HTC One offline in Eclipse Android device chooser
- Online Device Not visible on Eclipse Android Device Chooser
- Android Device Chooser -- device not showing up
- Why is Eclipse's Android Device Chooser not showing my Android device?
- Just upgraded my OS X to Yosemite, Android Device Chooser not showing device - what to do?
- Eclipse Android SDK cannot see new Samsung Galaxy S4 device via a USB connection
- Eclipse Doesn't Recognize my Android Device
- Error "AdbCommandRejectedException: device not found" in Eclipse using Android emulator
- Changing displayed Android device name in Eclipse
- Android device keeps disconnecting from adb / eclipse
- Android Build Target cant be selected in eclipse
- Eclipse has multiple copies of same Android Device
- Eclipse Android Project no Target available
- Eclipse and Android and classpath: bin and target
- Android NDK in Eclipse :: (Cannot run program "ndk-build": Unknown reason)
- How to Avoid Launching the Android Application Twice ,Running from Eclipse to real device
- "No Target Selected" error on Android tablet emulator in Eclipse
More Query from same tag
- uploaded file isn't getting saved in under resources in webapps
- Error upgrading Eclipse Kepler SR1 to SR2?
- No resource found that matches the given name button id
- PrimeFaces 3.4 RC1, dialog not recognizing the Managed Bean property
- Shutdown hook doesn't work in Eclipse
- Eclipse doesn't recognize new files created by others in the repository
- My program stay Frozen until answer
- java application is opened twice when i double click on my jar-file
- Eclipse - Add Server - Next Button is disabled when I select a specific Tomcat (e.g tomcat8)
- Expression Language skip identifier check in tomcat 7
- Sub-packaging my static meta-model classes on Eclipse Indigo
- Timer code compiling but not working correctly
- How to get lombok generated source to be visible in eclipse/maven?
- Eclipse debugging of Android app taking too long
- Working directory when run in eclipse, cmd, and jar
- Lombok and STS issue - Method undefined
- Java - Word Frequency
- How to set global preferences for eclipse in multiuser environment?
- Why my Swing based GUI application is not responding?
- R.Java not generating on any android project, even if it's new
- How to make an Eclipse Android launch part of project
- Java: Redirecting inner process output when running from command line
- Eclipse Error: Unable to instantiate activity
- Run multiple programs sequentially in one Windows command prompt?
- Eclipse excludes build directory from svn
- Problems with jar
- using eclipse, how to debug java application build to ear using ant and deployed on weblogic
- Read PATH variable using Java (in Eclipse on Mac OS X) differs from shell
- How do I convert a dynamic web application to a war
- blakcberry os 7 simulator loading forever