java 如何在 Android Studio 的同一个项目中同时使用两个模拟器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28619463/
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-11-02 13:54:15  来源:igfitidea点击:

How to use two emulators at the same time in the same project in Android Studio?

javaandroidandroid-studioandroid-emulatorsmsmanager

提问by Spoofy

I working in Android Studio and I need some help regarding the emulators.

我在 Android Studio 工作,我需要一些有关模拟器的帮助。

I want to start two emulators so I can use them the same time to test my application. Right now the problem is that when the second emulator loads everything just crashes.

我想启动两个模拟器,以便我可以同时使用它们来测试我的应用程序。现在的问题是,当第二个模拟器加载时,一切都崩溃了。

How can I solve this?

我该如何解决这个问题?

Please help!

请帮忙!

回答by user3261297

You can run multiple emulators at the same time simply by running your app again. When the AVD manager pops up, instead of selecting your already running emulator, click 'Launch Emulator' and select another emulator to launch.

只需再次运行您的应用程序,您就可以同时运行多个模拟器。当 AVD 管理器弹出时,不要选择已经运行的模拟器,而是单击“启动模拟器”并选择另一个模拟器来启动。

回答by Gastón Saillén

It's simple, if you already downloaded in the AVD a system image, just create another emulator with that same image, not need to download another one, change the name of that device and start one app in one emulator and the other in the other one

很简单,如果您已经在 AVD 中下载了系统映像,只需创建另一个具有相同映像的模拟器,无需下载另一个模拟器,更改该设备的名称并在一个模拟器中启动一个应用程序,然后在另一个模拟器中启动另一个应用程序