Flutter android emulator always stays in the background with VS code
Whenever I launch android emulator using VS code, the emulator always stays in the background.
Emulator not opening in foreground when started from VS code
Whenever i am trying to open android emulator from VS code the emulator opens as normal for just a second and then it goes to the minimized state, not being able to come to normal state (Fullscreen) whatever i do.
Emulator not showing on screen but running in background
I shifted my sdk folder and .android folder into D drive from C drive, since then I have been having few issues, first my emulator (Google pixel 7 pro) was not showing in vs code, so I tried all solutions I could find like path changes, something about ANDROID_HOME and ANDROID_SDK_HOME, restarting adb server, re-installing vs code etc, but nothing was working, so I made the .android folder back on C drive in its original place and changed the paths accordingly (the sdk is still in D drive), now the google pixel emulator is showing but when I try to run, it opens for a second and disappears. It is running in background but nothing is there on my screen. When I run it in android studio it is running properly.
(Flutter SDK has been in D drive since day 1)
firebase-firestore-24.11.0.pom:2:1: Content is not allowed in prolog
When I am trying to run the application to the android emulator , this problem is showing.enter image description here