可以将附件设置为默认启动目标吗? [英] Can I set an attached device as default launch target?
问题描述
在Eclipse中,我正在使用 Google API(maps )在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,一切都可以。然而,令我感到烦恼的是,每当我想要测试某些东西,我需要选择该设备。
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版本的构建目标名称设置为不使用Google apis)会自动启动我的应用,而不显示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.
有没有办法强制使用Google apis的应用程序,显示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?
推荐答案
转到您的项目属性。选择运行/调试设置
,单击运行配置的编辑
按钮,选择目标在即将到来的对话框中的
选项卡中,将选择框切换到自动,然后选中您的设备复选框。
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.
这篇关于可以将附件设置为默认启动目标吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!