首次运行Android SDK模拟器报错‘Cold boot: snapshot doesn't exist’解决方法
Fixing "Cold boot: snapshot doesn't exist" in Android Studio Emulator
Hey there, let's get that emulator up and running smoothly! This error pops up when the emulator's snapshot file is missing or corrupted—totally normal for your first time setting things up, so no need to stress. Here are a few straightforward fixes to try:
Quick Fix: Wipe Emulator Data
This is the easiest and most reliable solution for most cases:
- Close the emulator window completely (make sure it's not running in the background).
- Open the AVD Manager in Android Studio (look for the phone icon in the toolbar).
- Find the emulator device that's giving you trouble, click the three-dot menu on its right, and select Wipe Data.
- Once the wipe finishes, restart the emulator. It'll perform a fresh cold boot and generate a new snapshot automatically.
Advanced Fix: Manually Delete Snapshot Files
If the first method doesn't work, you can clean up the corrupted snapshot files manually:
- Navigate to your emulator's storage directory:
- Windows:
C:\Users\<YourUsername>\.android\avd\<EmulatorName>\.avd\snapshots - Mac/Linux:
~/.android/avd/<EmulatorName>/.avd/snapshots
(Replace<YourUsername>and<EmulatorName>with your actual username and the name of your emulator.)
- Windows:
- Delete all files and folders inside the
snapshotsdirectory (or just delete the entiresnapshotsfolder). - Go back to AVD Manager and restart the emulator—it'll create a new, working snapshot from scratch.
Prevent Future Issues
To avoid this error down the line, you can set your emulator to always cold boot instead of relying on snapshots:
- In AVD Manager, click the pencil icon to edit your emulator device.
- Scroll down and click Show Advanced Settings.
- Find the Boot option dropdown menu and select Cold boot.
- Save your changes. Now the emulator will skip snapshot checks and start fresh every time.
内容的提问来源于stack exchange,提问作者Bhart Kumar
相关产品推荐
相关产品推荐

