如何从 Eclipse 自动运行 Android 模拟器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/506777/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 02:13:02  来源:igfitidea点击:

How do I run an Android emulator automatically from Eclipse?

androideclipseemulation

提问by VonC

I need to know how to run an Android emulator automatically from Eclipse.

我需要知道如何从 Eclipse 自动运行 Android 模拟器。

Any ideas?

有任何想法吗?

回答by VonC

Once you have installed ADT, you need to define an ADT launch configuration, in order for your project to execute itself as an Android executable.

安装ADT 后,您需要定义ADT 启动配置,以便您的项目作为 Android 可执行文件自行执行。

Hello World Android

你好世界安卓



Then, do not forget to To go in Eclipse->Preferences->Run/Debug->Launching.
In the “Launch Operation” subsection, select “Always launch the previously launched application”:

然后,别忘了进去Eclipse->Preferences->Run/Debug->Launching
在“ Launch Operation”小节中,选择“ Always launch the previously launched application”:

Eclipse launching options

Eclipse 启动选项

回答by Iamat8

There are two ways for that..

有两种方法。。

  • Launch AVDfrom Menu bar

    Steps :

    1. Click on Android Virtual Device Manager

      image1

    2. Select the device you have created and click Start

      image2

    3. Click Launchand wait to AVDbe launched..

      image3

    4. Your AVDis running..

      image4

  • Launch AVDfrom Run Configuration

    Steps :

    1. Right click on Runicon at menu bar and select Run Configuration

      image5

    2. Select Targettab > Select third radio option says (Automatically pick compatible device : ...)> Tick your desire AVDyou want to launch > click Apply> click Run

      image6

  • 菜单栏启动AVD

    脚步 :

    1. 点击Android 虚拟设备管理器

      图片1

    2. 选择您创建的设备并单击开始

      图像2

    3. 单击Launch并等待AVD启动。

      图像3

    4. 您的AVD正在运行..

      图 4

  • 运行配置启动AVD

    脚步 :

    1. 右键单击菜单栏中的运行图标并选择运行配置

      图像5

    2. 选择目标选项卡 > 选择第三个单选选项说(自动选择兼容设备:...)> 勾选您想要启动的AVD> 单击应用> 单击运行

      图 6