我有一部运行 Android 2.3.4 的 Nexus One 手机.我正在尝试使用 USB 开放附件库构建应用程序.为此,我选择了 Google APIs 10 作为构建目标.该项目实际上是 Microchip 提供的一个应用程序,我知道它适用于该设备.我手动将应用程序的 APK 安装到手机上,它可以工作.现在我希望能够调试和修改应用程序.
I have a Nexus One phone running Android 2.3.4. I am trying to build an application using the USB open accessory library. To do this I have selected Google APIs 10 as the Build Target. The project is actually an application provided by Microchip that I know works on this device. I installed the APK of the application to the phone manually and it works. Now I want to be able to debug and modify the application.
当我按下运行按钮时,是时候选择一个平台了.插入 Nexus One 后,Android 设备选择器窗口会显示以下内容:
When I press the Run button and it comes time to choose a platform. The Android Device Chooser window comes up with the following with the Nexus One plugged in:
有什么想法吗?
谢谢,
我在 Linux 开发环境中工作.特别是 Fedora 14.
I working in a Linux development environment. Specifically Fedora 14.
解决方案是为设备创建一个 udev 规则.请参阅 http://developer.android.com/guide/developing/device.html#setting-up 了解如何为您的特定供应商设备设置 udev 规则.
The solution was to create a udev rule for the device. See http://developer.android.com/guide/developing/device.html#setting-up for how to setup a udev rule for your specific vendor device.
规则到位.Eclipse 能够启动和调试.
With the rule in place. Eclipse was able to launch and debug.
这篇关于Eclipse:Android 设备选择器 - 未知的 Android 2.3.4 设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!