Android的工作室(IntelliJ IDEA的) - 运行/调试配置 - 记忆上运行的设备 [英] Android Studio (Intellij Idea) - run/debug configuration - remembering which device to run on

查看:375
本文介绍了Android的工作室(IntelliJ IDEA的) - 运行/调试配置 - 记忆上运行的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想这是一个有点远射,但随着Eclipse的,如果你使用的是Android模拟器这是不包含的一个(例如,VirtualBox的),你可以选择它的第一次运行您的程序,并勾选复选框说:使用这个设备的未来发射。但是,同样的选项不会在Android的工作室(IntelliJ IDEA的)存在,这意味着你要运行的程序,每次选择模拟器。

I guess this is a bit of a longshot, but with Eclipse, if you were using an Android emulator which was not the included one (for example, VirtualBox), you could select it the first time you ran your program, and tick a checkbox saying "Use this device for future launches". But the same option does not exist in Android Studio (Intellij Idea), meaning you have to choose the emulator every time you want to run the program.

我想知道如果任何人的任何方式知道我可以破解这个所以它总是会在一个特定的模拟器这是不是内置的模拟器中运行。我可以把仿真器的IP地址和端口到一个配置文件,以便在某个程序总是在它推出没有我不必点击?我知道这是一个很小的事情,但它只是方便。

I'm wondering if anyone knows of any way I can hack this so it will always run on a particular emulator which is not the built-in emulator. Can I put the emulator's ip address and port into a config file somewhere so the program will always launch on it without me having to click? I know it's a small thing but it's just convenience.

推荐答案

正确的答案是选择USB设备作为默认值。该程序将自动在连接VirtualBox虚拟仿真器上运行。 <一href=\"http://stackoverflow.com/questions/16616185/android-studio-intellij-idea-run-debug-configuration-remembering-which-dev#comment24102506_16616967\">The答案予以sasha_trn在此评论提供

The correct answer is to select USB device as the default. The program will then automatically run on the connected Virtualbox emulator. The answer was provided by sasha_trn in this comment

这篇关于Android的工作室(IntelliJ IDEA的) - 运行/调试配置 - 记忆上运行的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆