I'm working in Android Studio, and have been happily running in normal mode and debug mode for ages. Suddenly, debug mode has stopped working for me.
If I try to click on the Debug button (the little bug with the 'play' triangle), it attempts to start in the emulator, but the app never opens.
On the emulator, I get the "Waiting for debugger" alert, and the option to "Force Close". On Android Studio itself, the debug window at the bottom repeatedly shows "Waiting for application to come online:", and then "Could not connect to remote process. Aborting debug session."
I can run it fine in normal mode. It makes no difference whether I use the debug button to start the emulator, or whether it's already open in normal mode and I use the debug button to switch to debug mode.
I've tried restarting everything, and it hasn't made any difference. Any solutions I can find online are for much older versions of Android Studio.
Any ideas what I can try? I'm working around it with lots of Logs, but that's really slow.
I seem to have resolved this by choosing the 'debug' flavour before opening the emulator. It makes sense to need to do that, but 1) it didn't work like that before and 2) if it's now required, it seems like there should be some kind of error message with more details.