使用 USB 电缆连接时在 Eclipse 中未检测到设备 [英] Device not detected in Eclipse when connected with USB cable

查看:36
本文介绍了使用 USB 电缆连接时在 Eclipse 中未检测到设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在设备上运行我的 Android 项目.

I want to run my Android project on a device.

当我用 USB 电缆连接我的设备时,在 Eclipse 中没有检测到我的设备.

My device is not detected in Eclipse when I connect it with a USB cable.

我重新启动了 Eclipse,并检查了设备上的 USB 调试是否打开.

I restarted Eclipse and I have checked that USB debugging is on, on the device.

谁能告诉我问题是什么以及如何解决?

Can anybody tell me what the problem is and how to resolve it?

推荐答案

在开始之前,请确保 USB 调试已在您的手机设置中启用 !!!

Before starting, Make sure that USB DEBUGGING IS ENABLED in your phone settings !!!

1) 基本步骤 - 通过 USB 插入设备,然后转到 设备页面Android 开发者博客.您可以在那里找到有关添加 USB 供应商 ID 的必要信息.添加您的设备特定 ID,并根据需要重新启动 eclipse.

1) BASIC STEP - Plug in device via USB, then go to device page in Android developers blog. There you can find necessary information regarding adding USB vendor ids. Add your device specific ids, and restart eclipse if needed.

2)如果你能看到连接的设备(使用命令:'adb devices') 之前,但不再是,然后尝试重新启动 ADB.(您可以使用以下命令:'adb kill-server' 后跟 'adb start-server'.adb 命令需要从 Android SDK 的平台工具文件夹中执行,如果您还没有导出它).

2)If you were able to see the device connected(using command: 'adb devices' ) earlier, but not anymore, then just try restarting ADB. (you can use the commands: 'adb kill-server' followed by 'adb start-server'. adb commands need to be executed from platform tools folder in the Android SDK, if you havent exported it).

3)如果它们都不起作用并且您使用的是 Windows 机器,然后检查安装的USB驱动程序是否正确.如果没有安装正确的驱动程序请在 http://developer 中找到有关如何安装/更新驱动程序的更多信息.android.com/tools/extras/oem-usb.html

3)If neither of them works out and you are on windows machine, then check the installed usb drivers are correct. If not install proper drivers Please find more information on how to install/update drivers in http://developer.android.com/tools/extras/oem-usb.html

如果这也不起作用,请尝试安装通用 ADB Windows 驱动程序 https://plus.google.com/103583939320326217147/posts/BQ5iYJEaaEH

If this also is not working, try installing Universal ADB windows driver https://plus.google.com/103583939320326217147/posts/BQ5iYJEaaEH

4)您也可以尝试增加超时时间在 Eclipse 中转到首选项-> android-> DDMS,然后尝试增加ADB 连接超时(毫秒)"值

4)You may also try increasing the timeout time Go to preferences-> android->DDMS in eclipse, then try increasing 'ADB connection timeout(ms)' value

根据较新的答案进行更新:

5) 运行 > 运行配置 > 目标.请确保已启用始终提示选择设备"选项.

5)Run > Run Configurations > Target. Please make sure, the option "Always prompt to pick device" is enabled.

特殊情况:Windows 8 和 Nexus 10(来自这个问题:ADB 未找到设备)

Windows 8 无法识别我的 Nexus 10 设备.通过设置固定通过设置对话框将模式传输到相机 (PTP)设备.

Windows 8 wouldn't recognize my Nexus 10 device. Fixed by Setting the transfer mode to Camera (PTP) through the settings dialogue on the device.

设置 > 存储 > 菜单 > USB 计算机连接到相机 (PTP)"

Settings > Storage > Menu > USB Computer connection to "Camera (PTP)"

这篇关于使用 USB 电缆连接时在 Eclipse 中未检测到设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆