I had the same problem, and have not been able to get Eclipse in Windows 7 to recognise the device. The device is correctly configured, Windows 7 recognises it on the USB port, and I edited the Run settings in Eclipse to prompt for a device, and it is just not there.
我用以下步骤运行它:
Connect the device to the computer with USB.
确保设备未被锁定(即。在用户界面中超时)。我工作的时候得不停地解锁。
等待 Windows 识别 USB 设备,当自动播放菜单出现时,选择 Open device to view files。它应该在资源管理器中打开设备中的文件系统。
在 Explorer 中,转到 Eclipse 工作区并从构建中找到 apk文件(例如 MyFirstApp.apk)
将 apk 文件复制到设备上的 Downloads 目录
On the device, use the My Files app (or similar) to open the Downloads directory.
For those who are trying to find how to enable debugging on devices running Jelly Bean 4.2 (e.g Google Nexus), you have to go to Settings > Apps > About tablet and tap the text "Build number" 7 times slowly. Go back to the now available 设置 > 开发人员选项 and check USB debugging as stated in previous posts.
Done! By tapping on “Build number” seven times, you have unlocked USB debugging mode on Android 4.2 and higher. You can now enable/disable it whenever you desire by going to “Settings” -> “Developer Options” -> “Debugging” ->” USB debugging”.
下一步是通过 USB 连接线将您的设备连接到您的计算机。
下一步是为它安装一个 USB 驱动程序。在 官方网站上,你可以找到一个列表,其中包含来自不同公司的手机驱动程序的源代码。
Eclipse now should give you the phone as a choice when you click on Run and it presents you possible device to launch.
在某些情况下,Eclipse 会告诉您目标未知,从而阻止您使用该设备。如果是这样的话,你可能需要重新启动手机。您可能还必须检查和重新检查 USB 调试,直到电话要求您允许您的特定计算机进行 usb 调试。
connect your device to system and set you device debug mode on when you run your application Android Virtual Device AVD will select device there you will see your connected device select your mobile device and thats all refer this link to set your device debugging mode on