Eclipse won't recognize my android phone -> Can't debug

时间秒杀一切 提交于 2019-12-10 15:47:05

问题


All of a sudden Eclipse stopped recognizing my android device. So when I hit the Play-Button I get the following message:

No compatible targets were found. Do you wish to add a new Android Virtual Device?

Strangely on my device it says that USB-Debugging is connected, as soon as I plug it into my macbook.

What could be the problem here? Thanks!

PS: I'm using a Samsung Galaxy i5800 and a MacbookPro.


回答1:


First of all you should check if your adb daemon is run (I assume you have android sdk installed). Please try taping this in terminal:

adb devices

And if there is nothing after List of devices attached try restarting server:

sudo adb kill-server
sudo adb devices



回答2:


I recently discovered that I had switched a looking mini-usb power cable with a mini-usb data cable (the former was to recharge a bluetooth keyboard for a Nexus 7). Very, very frustrating, as the cables seem to be identical minus a data wire (as there doesn't seem to be a way to tell without switching cables (I.E., there's no indicator that yes, the phone is plugged in, but it isn't communicating (as opposed to being a driver problem))).




回答3:


Im using a samsung galaxy s3. I had the same problem. found out that the reason it read the phone in the first place was cause i was teathering. So i selected teather and that solved it.




回答4:


I had the same problem. When I re-installed my Windows, I forgot to install the driver for my phone. The general usb driver was not enough - the one provided by the factory also needs to be installed. In my case I had to download PC Companion for my Xperia. Samsung has Kies.




回答5:


my celkon a85 android mobile also not detected by eclipse even after enabled usb debugging. there is no driver cd for such mobiles, windows says no wizard found to install. but "pdaNet for android" software helped to detect my phone.u can find that software here . just download it , and install with its guide, it will automatically install driver software for your android mobiles like celkon,micromax,etc., and this software helps your android phone to act as modem(like nokia pc suit ). u can connect interent in pc using your mobile network.




回答6:


I work on Linux and was able to get the message that too many files were open. I'm too stupid to know how to close them. So I rebooted my laptop and eclipse then recognized my phone again. I know there are admin terminal tools for closing files in Unix that would save you the reboot if you had to do this often. In my case, it may be the webviews caching, which I adjusted.

Judging by the other suggestions, open files may be only one of the problems that causes this disruption.




回答7:


I am using Samsung Gio, android version 2.3.6, Linux Mint and Eclipse 3.8.0 . The link Maciek posted worked for me ( https://android.stackexchange.com/questions/4322/my-samsung-galaxy-3-gt-i5801-is-not-being-detected-by-my-pc-what-should-i-d ). thx!



来源:https://stackoverflow.com/questions/7371741/eclipse-wont-recognize-my-android-phone-cant-debug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!