If you are in the same position as me where the emulator is stuck while installing the APK file, then out of many workarounds that are available below is another one that you could try.
I feel this is very simple one.
Just go to main.dart file and comment out all the code there, and write a simple hello world program and run it.
If the app loads into the emulator, then undo all the changes and then run your original code.
And in my case, it fixed the loading issues.
This is better than lot of work arounds offered in the internet.
Hope this helps.
Thanks,
Srikanth