macos Eclipse 无法识别我的 android 手机 -> 无法调试

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7371741/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 08:24:47  来源:igfitidea点击:

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

androidmacosadbeclipse-adt

提问by Mistefix

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

突然间 Eclipse 停止识别我的 android 设备。所以当我点击播放按钮时,我收到以下消息:

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

没有找到兼容的目标。您要添加新的 Android 虚拟设备吗?

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

奇怪的是,在我的设备上,只要我将它插入我的 macbook,它就会显示 USB 调试已连接。

What could be the problem here? Thanks!

这里可能有什么问题?谢谢!

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

PS:我使用的是三星 Galaxy i5800 和 MacbookPro。

回答by Maciek Sawicki

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 守护进程是否已运行(我假设您已安装 android sdk)。请尝试在终端中录音:

adb devices

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

如果List of devices attached尝试重新启动服务器后没有任何内容:

sudo adb kill-server
sudo adb devices

回答by hEADcRASH

I recently discovered that I had switched a looking mini-usb powercable with a mini-usb datacable (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))).

我最近发现我用迷你 USB数据线(前者是为 Nexus 7 的蓝牙键盘充电)更换了看起来像迷你 USB电源线。非常非常令人沮丧,因为除了一根数据线之外,电缆似乎是相同的(因为似乎没有办法在不切换电缆的情况下进行判断(即,没有迹象表明是的,电话已插入,但它不是'不沟通(而不是驱动程序问题)))。

回答by Chad Bingham

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.

我使用的是三星 Galaxy s3。我有同样的问题。发现它首先读取电话的原因是因为我在窃听。所以我选择了teather并解决了它。

回答by HiB

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.

我有同样的问题。当我重新安装我的 Windows 时,我忘记为我的手机安装驱动程序。一般的usb驱动是不够的——还需要安装厂家提供的。就我而言,我必须为我的 Xperia 下载 PC Companion。三星有凯斯。

回答by Senthil

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.

即使在启用 USB 调试后,我的 celkon a85 android 手机也没有被 eclipse 检测到。没有此类手机的驱动程序 cd,windows 说找不到安装向导。但是“pdaNet for android”软件有助于检测我的手机。您可以在此处找到该软件。只需下载它,并使用其指南进行安装,它会自动为您的 celkon、micromax 等 android 手机安装驱动程序软件,该软件可帮助您的 android 手机充当调制解调器(如诺基亚 PC 套装)。您可以使用您的移动网络在电脑上连接互联网。

回答by R Earle Harris

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.

我在 Linux 上工作,并且能够收到打开过多文件的消息。我太笨了,不知道如何关闭它们。所以我重新启动了我的笔记本电脑和 eclipse 然后再次识别了我的手机。我知道有一些管理终端工具可以在 Unix 中关闭文件,如果您必须经常这样做,可以节省重新启动的时间。就我而言,它可能是我调整的 webviews 缓存。

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

从其他建议来看,打开的文件可能只是导致这种中断的问题之一。

回答by gnyrfta

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!

我使用的是三星 Gio、android 版本 2.3.6、Linux Mint 和 Eclipse 3.8.0。Maciek 发布的链接对我有用(https://android.stackexchange.com/questions/4322/my-samsung-galaxy-3-gt-i5801-is-not-being-detected-by-my-pc-what-应该-id)。谢谢!