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

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

问题描述

我要运行我的一台设备上的Andr​​oid项目。

I want to run my Android project on a device.

我的设备没有在Eclipse中发现,当我用USB线连接。

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?

推荐答案

开始之前,请确保 <一个href="https://www.google.co.in/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=enable%20usb%20debugging">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设备 )较早,但现在不是了,那么就请尝试重新启动亚行。 (您可以使用命令:ADB杀死服务器然后按亚行启动服务器 ADB命令需要从平台工具文件夹中的Andr​​oid 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驱动程序<一href="https://plus.google.com/103583939320326217147/posts/BQ5iYJEaaEH">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)您也可以尝试增加超时时间 转到preferences-> android-> DDMS在Eclipse中,则尝试增加亚行连接超时(毫秒)值

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 (从这样一个问题:的亚行没有设备发现

Special case: Windows 8 and Nexus 10 (from this question: ADB No Devices Found)

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)"

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

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