I recently encountered an issue while setting up my React Native development environment using Android Studio on Windows.
The Android Emulator worked perfectly in embedded mode. However, after switching to standalone mode, the emulator was running but its window was not visible on the desktop. I could only see the Android home screen by hovering over the taskbar icon.
Environment
- Windows (build 26300.10075)
- Android Emulator 37.3.10.0
- Pixel 8 Pro — API 36
- NVIDIA GeForce RTX 3050 Laptop GPU
- Windows Hypervisor Platform (WHPX)
Launching the emulator through CMD and checking the error logs
To investigate the issue, I decided to launch the Android Emulator directly through Windows Command Prompt instead of Android Studio.
First, navigate to the Android Emulator directory:
cd /d "%LOCALAPPDATA%\Android\Sdk\emulator" List the available Android Virtual Devices:
emulator.exe -list-avds Output:
Pixel_8_Pro Launch the emulator with a fresh boot:
emulator.exe -avd Pixel_8_Pro -no-snapshot-load While monitoring the terminal output, I noticed the following logs:
INFO | Boot completed in 24349 ms INFO | Critical: UpdateLayeredWindowIndirect failed for ptDst=(349, -1265) The logs confirmed that Android had booted successfully in approximately 24 seconds. However, the negative Y coordinate (-1265) suggested that the emulator window might be positioned outside the visible desktop area.
Solutions I tried that didn't work
- Restarting the ADB server.
- Performing a cold boot.
- Checking and resetting
window.xandwindow.yinemulator-user.ini. - Changing
window.scaleto1.000000. - Using
Alt + Spaceto move the window.
Visual representation of the problem

Before: The emulator is running, but its window appears to be outside the visible desktop area.
After: The emulator window is restored and repositioned within the visible desktop.
Working solution
I finally resolved the issue using PowerShell and the Windows Win32 API to force the emulator window back onto the visible desktop.
Step 1: Keep the emulator running
Make sure the Android Emulator is running in the background.
Step 2: Open Windows PowerShell
Open a new Windows PowerShell terminal without closing the emulator.
Step 3: Execute the following script
Add-Type @" using System; using System.Runtime.InteropServices; public class WindowFix { [DllImport("user32.dll")] public static extern bool SetWindowPos( IntPtr h, IntPtr z, int x, int y, int w, int ht, uint flags); [DllImport("user32.dll")] public static extern bool ShowWindow( IntPtr h, int cmd); } "@ Get-Process | Where-Object { $_.ProcessName -match '^(emulator|qemu-system)' -and $_.MainWindowHandle -ne 0 } | ForEach-Object { [WindowFix]::ShowWindow($_.MainWindowHandle, 9) [WindowFix]::SetWindowPos( $_.MainWindowHandle, [IntPtr]::Zero, 100, 100, 0, 0, 0x45 ) } Step 4: Verify the output
In my case, PowerShell returned:
True True The emulator window immediately became visible and worked normally in standalone mode.
How it works
-
Get-Processidentifies the running emulator process. -
MainWindowHandleretrieves its Windows window handle. -
ShowWindow()restores the window. -
SetWindowPos()repositions the window to coordinates(100, 100)without resizing it. -
0x45combines theSWP_NOSIZE,SWP_NOZORDER, andSWP_SHOWWINDOWflags.
Conclusion
In my case, the emulator itself was functioning correctly. The issue was related to the visibility and positioning of its standalone window.
This solution worked without:
- Reinstalling Android Studio.
- Deleting the virtual device.
- Wiping emulator data.
- Downloading the Android system image again.
- Changing hardware acceleration settings.
I have not yet verified whether the corrected window position persists across future restarts.
Hopefully, this saves someone else the time I spent troubleshooting this issue!
Disclosure: AI assisted with troubleshooting, preparing the diagram, and writing this article. The solution was personally tested and verified on my laptop.

