如何使用谷歌api';在Android设备选择器中强制执行Android自动设备选择;他在一个项目中

如何使用谷歌api';在Android设备选择器中强制执行Android自动设备选择;他在一个项目中,android,google-api,adt,Android,Google Api,Adt,从eclipse启动带有google api的android项目将调用设备选择器。在项目属性中,我选择了自动选择设备,但由于项目需要google api,因此设备似乎不完全兼容,如图所示: 该设备是galaxy nexus,安装了谷歌地图 如何使在设备上启动项目看起来毫无意义。我正在寻找一种一键解决方案,在项目上单击一次,它就会在设备上启动。使用adb安装命令 adb install [-l] [-r] [-s] <file> -push this package file to

从eclipse启动带有google api的android项目将调用设备选择器。在项目属性中,我选择了自动选择设备,但由于项目需要google api,因此设备似乎不完全兼容,如图所示:

该设备是galaxy nexus,安装了谷歌地图


如何使在设备上启动项目看起来毫无意义。我正在寻找一种一键解决方案,在项目上单击一次,它就会在设备上启动。

使用adb安装命令

adb install [-l] [-r] [-s] <file> -push this package file to the device and install it
                             ('-l' means forward-lock the app)
                             ('-r' means reinstall the app, keeping its data)
                             ('-s' means install on SD card instead of 
                                   internalstorage)
adb安装[-l][-r][-s]-将此程序包文件推送到设备并安装它
(“-l”表示应用程序的前向锁定)
(“-r”表示重新安装应用程序,保留其数据)
(“-s”表示安装在SD卡上,而不是
内部存储)

这个问题没有解决方案。这是android开发工具中的一个缺陷。自2010年以来,它一直存在且未修复


此方法将安装apk,但如何帮助我自动安装和运行apk?