Android Studio模拟器启动失败:错误码-1073741819(0xC0000005)
Hey there, let's work through this annoying emulator crash you're dealing with. That exit code (-1073741819, or 0xC0000005) typically points to memory access conflicts or misconfigured virtualization settings on Windows. Here are the most reliable fixes to get your emulator running again:
Disable conflicting Windows virtualization features
This is the #1 cause of this error. Hyper-V and other Windows virtualization tools often clash with HAXM (the Intel emulator accelerator). Here's how to fix it:- Open Control Panel > Programs > Turn Windows features on or off
- Uncheck these boxes: Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform
- Restart your PC
- Reinstall HAXM from Android Studio: Go to SDK Manager > SDK Tools and check Intel x86 Emulator Accelerator (HAXM installer), then click Apply to install it.
Tone down emulator RAM allocation
If you've allocated too much RAM to the emulator, it can trigger a memory access violation. Let's adjust that:- Open the AVD Manager in Android Studio
- Click the pencil (Edit) icon next to your virtual device
- Scroll down and click Show Advanced Settings
- Under Memory and Storage, lower the RAM value (try 2GB or 1.5GB if you had it set higher)
- Save your changes and launch the emulator again.
Update all Android Studio components
Outdated software often has bugs that cause crashes. Let's make everything up to date:- Go to Help > Check for Updates (Windows) to get the latest Android Studio version
- Open SDK Manager > SDK Tools and update Android Emulator and Android SDK Platform-Tools to their newest versions.
Switch to a different system image
The system image you're using might be corrupted or incompatible with your setup. Let's try a fresh one:- In AVD Manager, delete the problematic virtual device
- Create a new device, and pick a different system image—for example, if you used a 64-bit image, try 32-bit, or switch to an older Android version like Android 11 instead of Android 13
- Stick with x86 or x86_64 architecture images; ARM images are slower and more prone to issues on Windows.
Temporarily disable your antivirus
Some antivirus programs block the emulator from accessing necessary memory. Try turning off your antivirus temporarily and launch the emulator. If that works, add the Android Studio installation folder and the emulator directory (usually inC:\Users\<YourName>\AppData\Local\Android\Sdk\emulator) to your antivirus whitelist.
内容的提问来源于stack exchange,提问作者Pedro Henrique




