I am having issues with Android Emulator since 7-8 days. At first it was not runing at all now reinstalling the emulator solved that issue but giving birth to new one.
Whenever I run the emulator it takes alot of time, almost 5-6 minutes and then shows an error: Cold Boot: Snapshot doesn't exist
After restarting several times now emulator runs but still shows the error in the beginning.
The first time you start an Android Virtual Device (AVD) with the Android Emulator, it must perform a cold boot (just like powering on a device), but subsequent starts are fast and the system is restored to the state at which you closed the emulator last (similar to waking a device).
If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.
I too faced this issue for a while and recently resolved it. Through reading other SO posts it definitely seems to be related to the snapshot that the Emulator is trying to boot from - as eluded to by @Raimo's answer. Although I don't fully understand the cause for why this is happening (it happened to all of the AVDs I had saved) I've resolved it by configuring my AVD to perform a "cold boot" instead of a "quick boot" whenever I launch it. This solves the "Snapshot doesn't exist" message & the emulator boots as expected, allowing you to run and test your application.
Steps to fix the issue:
Start the Virtual Device now (close it if you previously had it running whilst making these changes so that they take effect). The "Snapshot doesn't exist" message won't appear and your emulator will start as expected.
The only downside to this option is that the state of the device when you last used it won't be stored i.e. your apps you previously had open.
Quick Boot is not reliable when software rendering is enabled. If Quick Boot does not work, click Edit this AVD from the AVD Manager and change Graphics from either Automatic or Software to Hardware.
Source: https://developer.android.com/studio/run/emulator.html#quickboot-troubleshooting
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With