为什么 Eclipse ADT 不能在 Windows 上识别我的 android 设备?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12764323/
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
Why isn't the eclipse ADT recognizing my android device on windows?
提问by David M. Karr
I've had the ADT installed for quite a while. I know I've run some apps on my device (Moto Droid4) in the past, but today the ADT doesn't appear to be acknowledging that I have it connected.
我已经安装了 ADT 一段时间了。我知道我过去曾在我的设备 (Moto Droid4) 上运行过一些应用程序,但今天 ADT 似乎没有承认我已经连接了它。
I've got the "USB debugging" checkbox on. It's connected to a USB port on the laptop. When I first connected it, the laptop brought up several dialogs asking me what I wanted to do with this, all of which I dismissed.
我打开了“USB 调试”复选框。它连接到笔记本电脑上的 USB 端口。当我第一次连接它时,笔记本电脑出现了几个对话框,问我想用它做什么,我都拒绝了。
I tried restarting Eclipse, but it still doesn't list the device in the "Devices" list in the DDMS perspective.
我尝试重新启动 Eclipse,但它仍然没有在 DDMS 透视图中的“设备”列表中列出设备。
I tried to follow the instructions at http://developer.android.com/tools/extras/oem-usb.html#Win7to see if there was an issue with my USB driver, but it's not showing my device in the devices list.
我尝试按照http://developer.android.com/tools/extras/oem-usb.html#Win7上的说明查看我的 USB 驱动程序是否有问题,但它没有在设备列表中显示我的设备.
What could be wrong here?
这里可能有什么问题?
采纳答案by CptJesus
I've had this issue numerous times. My solution every time has been to uninstall the devices using USBDeview. Run the application as administrator, and then sort by name. Find the devices corresponding to your phone, and then uninstall those devices via the right click menu.
这个问题我遇到过很多次了。我每次的解决方案都是使用 USBDeview 卸载设备。以管理员身份运行应用程序,然后按名称排序。找到您手机对应的设备,然后通过右键菜单卸载这些设备。
Plug your phone back in, and tell driver search to skip obtaining from Windows Update. You should be up and running shortly.
重新插入手机,并告诉驱动程序搜索跳过从 Windows 更新获取。您应该很快就可以启动并运行了。
回答by Aniket Thakur
You need to install proper driver of your device. Only then your Eclipse can detect your device to launch you application on it.
您需要安装适当的设备驱动程序。只有这样您的 Eclipse 才能检测到您的设备以在其上启动您的应用程序。
How can I install the driver and how can I be sure it is installed?
如何安装驱动程序以及如何确定它已安装?
- Go to Computer(right click) -> Manage -> Device Manager.
- If your device is categorized in "other devices" or "portable devices" something is not right. Double click on the device listed in Device manager. Inside it check your driver details.
- If there are no driver details shown or the button is not clickable then the driver is not installed. If it is you need to update it.
- Windows should automatically do this for you. If not you can click on the icon when it is searching for the device driver and select "install most suitable driver automatically".
- Either case mentioned in point 3 the end result should be that after installing your driver(mind any suitable driver if your device driver is not available). Your device should be listed under the category "Android USB Devices"
- Now you can be sure that ADT would detect your device.
- 转到计算机(右键单击)-> 管理-> 设备管理器。
- 如果您的设备被归类为“其他设备”或“便携式设备”,则有问题。双击设备管理器中列出的设备。在里面检查您的驱动程序详细信息。
- 如果没有显示驱动程序详细信息或按钮不可点击,则说明未安装驱动程序。如果是,您需要更新它。
- Windows 应该会自动为您执行此操作。如果没有,您可以在搜索设备驱动程序时单击该图标并选择“自动安装最合适的驱动程序”。
- 第 3 点中提到的任何一种情况,最终结果都应该是在安装驱动程序之后(如果您的设备驱动程序不可用,请注意任何合适的驱动程序)。您的设备应列在“Android USB 设备”类别下
- 现在您可以确定 ADT 会检测到您的设备。
PS : I have mentioned any suitable driver because in my case I had Micromax A69(ICS) and it installed HTC driver. After this Android ADT started detecting my device. I am using Windows 7. Attaching a screen shot just for the reference -
PS:我已经提到了任何合适的驱动程序,因为就我而言,我有 Micromax A69(ICS) 并且它安装了 HTC 驱动程序。在此 Android ADT 开始检测我的设备之后。我使用的是 Windows 7。附上屏幕截图仅供参考 -
回答by Stephen Niedzielski
This needs some troubleshooting first, I think:
这首先需要一些故障排除,我认为:
- Have you tried rebooting the phone and PC?
- You have debugging enabled on the phone, but does it show a debugging notification when connected?
- Does the device enumerate under Device Manager (
devmgmt.msc
)? - From
cmd
, do you see it with aadb kill-server
andadb devices
?
- 你试过重启手机和电脑吗?
- 您在手机上启用了调试,但连接时是否显示调试通知?
- 设备是否在设备管理器 (
devmgmt.msc
)下枚举? - 从
cmd
,你看到它有一个adb kill-server
和adb devices
吗?
回答by Barak
Try changing your USB setting to "Charge Only".
尝试将您的 USB 设置更改为“仅充电”。
The "Mass Storage" setting takes control of the SD card away from the phone when plugged in.
插入时,“大容量存储”设置会从手机上控制 SD 卡。
Although I should note that even when my phone is set to "Mass Storage" it shows up... I just can't run an app through Eclipse to it. Of course, maybe other phones are different, so I guess it's worth a try.
尽管我应该注意,即使我的手机设置为“大容量存储”,它也会显示出来......我只是无法通过 Eclipse 运行应用程序。当然,也许其他手机不一样,所以我想值得一试。
回答by willsu21
This worked for me - look at the part about unloading the EasyTether extension. adb not finding my device / phone (MacOS X)I was able to connect my samsung galaxy note 2 to macbook pro snow leopard.
这对我有用 - 查看有关卸载 EasyTether 扩展的部分。adb 找不到我的设备/手机 (MacOS X)我能够将我的三星 Galaxy Note 2 连接到 macbook pro 雪豹。
回答by Roy Ho
ok...I made it work finally....here is my steps...
好的......我终于让它工作了......这是我的步骤......
- use USBDeview to uninstall the driver
- unplug the usb cable
- install KIES (download from samsung web site) http://www.samsung.com/uk/support/model/GT-N7105RWDCOV-downloads
- plug in the usb cable and skip obtaining driver from Windows Update
- it will continues to install
- open eclipse after the installation is done
- there you go
- 使用USBDeview卸载驱动
- 拔下 USB 电缆
- 安装 KIES(从三星网站下载) http://www.samsung.com/uk/support/model/GT-N7105RWDCOV-downloads
- 插入 USB 电缆并跳过从 Windows 更新获取驱动程序
- 它将继续安装
- 安装完成后打开eclipse
- 你去吧
回答by user3659666
I guess this might help somebody. I did the following for my moto x.
我想这可能会帮助某人。我为我的 moto x 做了以下工作。
- Installed Motorola device manager,which installed all the device drivers in the system.
- Now the device was recognized , but was detected as a storage device.
- Now,go to device manager in my case device was listed as portable devices.
- Right click on device,update driver Software.
- please choose Browse my computer for driver software.
- please choose Let me pick a list from a list of device drivers on my computer
- two options one will MTP USB Device and Other is Composite Device will be shown.
- Install both. Thats it now you can see your device under Android Device was well in Device Manager.
- Now Kill Adb process making sure adb process is not running also close eclipse if running.
- Issue adb kill-server and adb start-server commands in command prompt.
- Then after giving adb start-server a prompt will come in your device to authorize it.
- After selecting yes, voila ur device is recognized u can check it in adb devices command as your device will be set as device.
- Now start eclipse and u can see your device along with the emulators.
- 安装了摩托罗拉设备管理器,它安装了系统中的所有设备驱动程序。
- 现在该设备已被识别,但被检测为存储设备。
- 现在,在我的设备被列为便携式设备的情况下,转到设备管理器。
- 右键单击设备,更新驱动程序软件。
- 请选择浏览我的计算机以查找驱动程序软件。
- 请选择让我从计算机上的设备驱动程序列表中选择一个列表
- 将显示两个选项,一个是 MTP USB 设备,另一个是复合设备。
- 安装两者。就是这样,您现在可以在 Android 设备下看到您的设备在设备管理器中运行良好。
- 现在杀死 Adb 进程,确保 adb 进程没有运行,如果正在运行,也关闭 eclipse。
- 在命令提示符中发出 adb kill-server 和 adb start-server 命令。
- 然后在给 adb start-server 一个提示后,你的设备会提示你授权它。
- 选择是后,瞧你的设备被识别你可以在 adb devices 命令中检查它,因为你的设备将被设置为设备。
- 现在启动 eclipse,你可以看到你的设备和模拟器。
回答by Randika Vishman
I had this buggy error with my LG Optimus L3 phone connecting to Win7/8 machines!
我的 LG Optimus L3 手机连接到 Win7/8 机器时出现了这个错误!
Issue:My Android Device isn't recognized by the Eclipse ADT, why?
问题:Eclipse ADT 无法识别我的 Android 设备,为什么?
Cause:Device Driver was missing as it seemed at the end when I fixed it!
原因:设备驱动程序丢失,就像我修复它的最后一样!
How to Fix:
怎么修:
- Search through web (using Google) "LG < Your_Phone_Model Number > Drivers Download".(Ex.:- Go to About phone in your settings list >Model Number, for me it's LG-E400f)
- Mostly the first few links are related to the required Device Driver download page.(Ex.:- for me I got the following linkand for each device driver LG or most of the other vendors/manufactures have that kind of a Manuals and Drivers Page) Visit that page mentiioning about software update and drivers downloads.
- Scroll down to the section of "Manuals and Software Update" and doing just the Step 1was enough for me, which is "Install the USB DRIVERS"
- Download it(for Mac or Windows) >Install It >Check Your Eclipse ADT >and it should be visible under Devices tab by now
- 通过网络搜索(使用 Google)“ LG < Your_Phone_Model Number > Drivers Download”。(例如:-转到设置列表中的关于手机>型号,对我来说是 LG-E400f)
- 大多数前几个链接与所需的设备驱动程序下载页面相关。(例如:-对我来说,我得到了以下链接,对于每个设备驱动程序 LG 或大多数其他供应商/制造商都有那种手册和驱动程序页面) 访问该页面,其中提到了软件更新和驱动程序下载。
- 向下滚动到“手册和软件更新”部分,只执行步骤 1对我来说就足够了,即“安装USB 驱动程序”
- 下载它(对于 Mac 或 Windows)>安装它>检查你的 Eclipse ADT >现在它应该在设备选项卡下可见
Cheers!!!
Hope this helps to someone else to clearly get to the solution!
干杯!!!
希望这有助于其他人清楚地找到解决方案!
回答by gaborous
This problem can also happen because of a faulty usb-microusb cable (which is what happened to me). I guessed that it was the cable's fault (and not the drivers) when the SD card storage wasn't even mounted when I connected the cable (but what's surprising is that the cable was still properly functioning energy-wise, since it loaded by battery correctly and the LED was lit accordingly).
这个问题也可能是因为 USB-microusb 电缆有问题(这就是我遇到的情况)。当我连接电缆时甚至没有安装 SD 卡存储时,我猜测这是电缆的故障(而不是驱动程序)(但令人惊讶的是,电缆在能源方面仍然正常运行,因为它是由电池加载的正确并且 LED 相应地点亮)。