在Eclipse中我开发使用谷歌的API(图)上的Nexus One。 当我启动用于调试设备上的应用程序,我得到:
In Eclipse I am developing an application using Google APIs (maps) on a Nexus One. When I launch the application for debugging on the device i get:
自动目标模式:无法检测到设备的兼容性,请 选择目标设备。
"Automatic Target Mode: Unable to detect device compatibility. Please select a target device."
和Android设备选择器弹出。 我可以选择的Nexus One,一切都OK。这惹恼了我,但是,我需要选择设备,每次我想测试的东西。
and the "Android Device Chooser" pops up. I can select the Nexus One and everything is ok. It annoys me, however, that i need to select the device every time i want to test something.
构建目标名称设置为任何标准的Android版本(不使用谷歌API)的自动启动我的应用程序,而不显示Android设备选配。但因为我需要的地图,这不是我的选择。
Setting a build target name to any standard android version (not using Google apis) automatically launches my app without showing the Android Device Chooser. But since i need the maps, that is not an option for me.
有没有办法来强制使用谷歌的API,将所连接的设备上启动的应用程序,而不显示Android设备选配?
Is there a way to force an application using Google apis, to be launched on the attached device without showing the Android Device Chooser?
转到您的项目属性。选择运行/调试设置
,点击你的运行配置的修改
按钮,选择目标在随后出现的对话框
标签,切换selectboxes为自动,并通过设备检查的复选框。
Go to your project properties. Select Run/Debug Settings
, click the Edit
button of your run configuration, select the Target
tab in the upcoming dialog, switch the selectboxes to "Automatic" and check the checkbox by your device.