简体   繁体   English

如何在项目中使用google api强制在android设备选择器中进行Android自动化设备选择

[英]how can I force Android Automated device selection in the android device chooser with google api's in a project

Launching an android project with google api's from eclipse invokes the device chooser. 从eclipse使用google api启动android项目会调用设备选择器。 In project properties I have selected automatic selection of device however the device doesnt appear entirely compatible due to the project requiring google api's as seen here: 在项目属性中,我选择了自动选择设备,但是由于该项目需要google api,因此该设备似乎并不完全兼容,如下所示:

错误

The device is a galaxy nexus and it has google maps installed. 该设备是一个星系联系,并且已安装了Google地图。

How can I make starting the project on a device seemless. 我如何才能使在设备上启动项目变得如此简单。 I am looking for a one click solution, click once on the project and it starts on the device. 我正在寻找一键式解决方案,在项目上单击一次,然后在设备上启动。

Use adb install command 使用adb install命令

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)

There is no solution to this problem. 没有解决此问题的方法。 Its a bug in the android development tools. 它是android开发工具中的错误。 Its been around and unfixed since 2010.. 自2010年以来一直未修复。

http://code.google.com/p/android/issues/detail?id=11373 http://code.google.com/p/android/issues/detail?id=11373

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如果测试取决于设备,我该如何为Android编写自动测试? - How can I write an automated test for Android, if the test depends on the device? 设备选择器中的Android设备离线 - Android device offline in Device Chooser 适用于Eclipse的Google Glass未知(Android设备选择器) - Google Glass unknown for Eclipse(Android Device Chooser) android设备选择器在哪里? - Where is android device chooser? 如何在Android中的Google Maps API中使用适合设备像素密度的自定义切片? - How can I use custom tiles that are adapted to the device's pixel density in Google Maps API in Android? 为什么Eclipse的Android设备选择器没有显示我的Android设备? - Why is Eclipse's Android Device Chooser not showing my Android device? 新的Android设备未显示在Eclipse的调试器上(Android设备选择器) - New Android device not showing on Eclipse's Debugger (Android Device Chooser) 有没有办法隐藏Android设备选择器? - Is there a way to hide the Android Device Chooser? 设备选择器中未显示Android模拟器 - Android Emulator not seen in Device Chooser 如何在Unity - Android中以强制分享意图的方式强制选择器? - How can I force the Chooser in this style of a share intent in Unity - Android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM