简体   繁体   English

如何阻止eclipse自动启动Android模拟器?

[英]How do I stop eclipse from automatically starting up an android emulator?

Lately, when I try to run or debug my app, instead of opening the "Android Device Chooser" dialog, like it should, it instead automatically starts up a random (useless) emulator and tries to install my app on that. 最近,当我尝试运行或调试我的应用程序时,它不是打开“Android设备选择器”对话框,而是自动启动随机(无用)模拟器并尝试在其上安装我的应用程序。

This problem kind of comes and goes, and eventually Eclipse starts behaving again and gives me the option to install the app on my phone and/or choose which emulator I want to start up and use. 这个问题来了又去,最终Eclipse开始再次运行,让我可以选择在我的手机上安装应用程序和/或选择我想要启动和使用的模拟器。 But when the problem does come up again, is there a way that I can fix it or force Eclipse to show the Android Device Chooser? 但是当问题再次出现时,有没有办法可以修复它或强制Eclipse显示Android设备选择器?

Just gotta right click on the project you're going to run, hover over "run as" and on the bottom of the menu you'll see "Run Configurations". 只需右键单击要运行的项目,将鼠标悬停在“运行方式”上,然后在菜单底部看到“运行配置”。

Click on that and check the box Always Prompt to pick device. 单击它并选中始终提示选择设备框。

It should look like this: 它应该如下所示:

在此输入图像描述

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM