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

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

问题描述

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



当我使用USB电缆连接时,我的设备在Eclipse中未检测到。



我重新启动了Eclipse,我检查了USB调试是否在设备上。



有人可以告诉我问题是什么如何解决?

解决方案

开始之前,请确保 USB DEBUGGING IS ENABLED < a>



1)基本步骤 - 通过USB插入设备,然后转到中的/developer.android.com/guide/developing/device.htmlrel =nofollow noreferrer>设备页面。在那里,您可以找到有关添加USB供应商标识的必要信息。添加您的设备特定的ID,如果需要,请重新启动eclipse。



2)如果您能够看到设备已连接(使用命令:'adb设备'
)更早,但不再是,那么只是尝试重新启动ADB。 (您可以使用命令:'adb kill-server',后跟'adb start-server'。adb命令需要从Android SDK中的平台工具文件夹执行,如果没有导出它)。 3)如果两个都没有出现,而且你在Windows机器上,则
然后检查安装的USB驱动程序是否正确。如果没有安装正确的驱动程序
请在
http://developer.android.com/tools/extras/oem-usb.html



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



4)您还可以尝试增加超时时间
转到eclipse中的首选项 - > android-> DDMS,然后尝试增加ADB连接超时( ms)'值



根据较新的答案更新



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



特殊情况:Windows 8和Nexus 10 (从此问题:亚行找不到设备


Windows 8无法识别我的Nexus 10设备。通过
设备上的设置对话框将
传输模式设置为相机(PTP)来修复。



设置>存储>菜单> USB电脑连接到相机(PTP)



I want to run my Android project on a device.

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

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?

解决方案

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

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

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

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

Update based on newer answers:

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

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

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.

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

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

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