Issue
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.
Solution
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:
- Open the Android Virtual Device Manager (Tools -> AVD Manager)
- Select the Virtual Device you'd like to use & click "Edit this AVD" (the Pencil icon)
- The "Virtual Device Configuration" window should now be open. Click the "Show Advanced Settings" button at the bottom of the window and scroll to the "Emulated Performance" section
- You'll see an option called "Boot option" which is typically set to "Quick Boot" by default - switch this to "Cold boot" and click "Finish".
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.
Answered By - Scott Barbour
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.