How to hook up Android Studio emulator from IDEA?
Answered
Hi,
I was running into some issues with stage height in Android devices with notches, specifically the Xiaomi Note Pro 6. So since I don't have that device I wanted to emulate it using Android Studio.
How can I launch an app made in IDEA (Air app) that runs in the emulator?, so I can get the debug info from stage sizes and all the jazz, cant find a way.
Thanks.
Please sign in to leave a comment.
I've cleaned up this thread and provided the summary of the solution at https://stackoverflow.com/a/55408486/104891 .
See also the discussion in this feature request: https://youtrack.jetbrains.com/issue/IDEA-113605.
More on that, I wouldnt even neeed to debug it from IJI, as long as I can run the APK that I generate on the emulator, Im good with that.
I guess that feature request never got implemented, I made a comment to see if it can comeback.
I've found this plugin that a colleague used in the past: https://plugins.jetbrains.com/plugin/1792-android-support,
Not sure if its still viable to use considering its from 2009.
This plug-in is obsolete. Android support is now bundled with the IDE and you don't need to install it.
Ok I got it working, in 2 simple steps:
1- get the emulator of choice running
2- choose "android device" from your run configuration.
When you choose device it actually finds the emulator and installs it there.
Also the architecture has to be set to x86.
Good to know, thanks for the hint.