Android Studio模拟器运行失败,报错退出码-1073741819(0xC0000005)
Hey there, I’ve run into this exact emulator error (exit code -1073741819 / 0xC0000005) on Windows before—it’s almost always tied to hardware acceleration conflicts or misconfigured emulator settings. Let’s go through the fixes that worked for me and other developers in the community:
Turn off Hyper-V and conflicting Windows virtualization features
This is the most common culprit. Hyper-V often clashes with the Android emulator's acceleration layer. Here's how to disable it:- Open Control Panel → Programs → Turn Windows features on or off
- Uncheck these options:
- Hyper-V
- Virtual Machine Platform
- Windows Hypervisor Platform
- Restart your PC, then try launching the emulator again.
Set up Intel HAXM (for Intel CPUs)
If you’re using an Intel processor, HAXM is required for smooth emulator performance, and a misinstallation can cause this error:- Open Android Studio → Tools → SDK Manager → SDK Tools tab
- Check "Intel x86 Emulator Accelerator (HAXM installer)" and click Apply to install or update it
- Navigate to your SDK folder (default path:
C:\Users\[YourUsername]\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager) - Run
intelhaxm-android.exeand follow the setup wizard—allocate at least 2GB of RAM for HAXM if possible.
Tweak emulator memory allocation
Overallocating RAM to the emulator can lead to memory access errors. Let’s adjust it:- Open Android Studio → Tools → Device Manager
- Find your emulator device, click the dropdown menu next to it, select "Edit"
- Switch to the "Advanced Settings" tab
- Lower the "RAM" value to 2048MB (start with this) and set "VM Heap" to 512MB
- Save the changes and launch the emulator again.
Update Android Studio and emulator components
Outdated software often causes compatibility bugs:- Open Android Studio → Help → Check for Updates (on Windows) to get the latest version
- Go to SDK Manager → SDK Tools and update all emulator-related tools: Android Emulator, Android SDK Platform-Tools, and any other outdated components.
Run Android Studio as Administrator
Sometimes permission restrictions block the emulator from accessing necessary resources:- Right-click the Android Studio shortcut and select "Run as administrator"
- Alternatively, locate the emulator executable at
[SDK Path]\emulator\emulator.exe, right-click it, and run as admin.
Temporarily disable third-party antivirus
Some antivirus programs flag the emulator's processes as suspicious and block them. Try turning off your antivirus temporarily—if the emulator launches successfully, add the Android Studio and emulator folders to your antivirus exception list.
内容的提问来源于stack exchange,提问作者amirhosein

