Multiple Android Emulation Question

Answered

You can run multiple android device emulators (Create Multiple Device Definitions. Check.)

You can run more than one emulator. (You can launch more than one at a time by multi-selecting in the Run option. Check.)

You cannot debug more than one running instance at a time. Check.

So is there an easy way to launch one emulator in debugging mode while also kicking off a few others in run mode? For example, say a way to run one project from two instances of IDEA simultaneously, kicking off a debugging session from one and running the emulators from the other?

AdvaTHANKSnce

0
6 comments

Please clarify what's the problem with starting another emulator in run mode when you are already debugging one?

0

The problem would be the Dialog Box that comes up saying, "To switch from Run to Debug, the app has to restart. Continue?" (or "To switch from Debug to Run, the app has to restart. Continue?")

0

Looks like Android Studio/Gradle limitation, feel free to report at https://issuetracker.google.com/issues/new?component=192736&template=0.

0

Done, but I was hoping for an alternative approach. I would think others have had this issue before me.

Is there a way to run two instances of IDEA so I can debug from one and run from the other? They are using different AVD's, so I don't think they should care about eachother. The thing stopping that would be UI. It lets you open another project at the same time, but not the same one.

I suppose I could pull this off by literally making a duplicate copy of the project, but that seems quite kludgy.

 

0

You should be able to do it in the same instance with a different project open in another frame.

0

Turns out I can do it in the same instance if I create a different configuration to launch them from. That was the missing part.

0

Please sign in to leave a comment.