Android Emulator snapshot error

AndroidEclipseAndroid Emulator

Android Problem Overview


When launching my application in eclipse 3.7.0 I receive an error...

Emulator] emulator: ERROR: Unable to load Vm from snapshot. The snapshot has been saved for a different hardware configuration.

I have ran this application numersous times with out error but now this error displays. I have checked my AVD Manager and my platform and API Level are correct.

Android Solutions


Solution 1 - Android

The problem isn't with your app, it is with the saved AVD snapshot. The AVD configuration has been edited since you last ran it successfully. Even changing skin/display resolution will produce this error. You could either:

  1. Change the AVD configuration back to how it was originally.
  2. Edit the AVD to disable the Snapshot. or
  3. When you next start the AVD, uncheck the Launch with snapshot, but keep Save snapshot checked. This way the snapshot will be ignored at start-up, but overwritten when you exit. You will then be able to use snapshot for subsequent runs as before.

Solution 2 - Android

resolved issue by:

  1. going to project and selecting Clean
  2. going to Window>AVD Manager>Delete and create a new AVD
  3. Relaunch application, emulator will take a few minutes to load.

Solution 3 - Android

To remove the list of stored snapshots in your system:

rm ~/.android/avd/[your_avd_name]/snapshots.img*

Solution 4 - Android

I had the same issue as Timmmm, nothing would resolve it.

Through the command line emulator.exe -avd avdname -snapshot default-boot gives me that same error. But I also noticed that it launches from the GUI just fine.

I went into the C:\users\uname\.android\avd\The_avd\ and deleted the snapshots.img.default-boot snapshot and the snapshots iso file.

It's easier than recreating the machine, but deletes your snapshot(s), and then you can use it again like normal.

Solution 5 - Android

Go to window-> Android Virtual Device Manager, choose your Virtual Device and Disable the Launch from snapshot and keep save to snapshot option and click Launch.

Solution 6 - Android

Maybe try to disable the hardware snapshot in the Android Virtual Device Manager? It should be installed wherever you installed the android SDK.

enter link description here

Solution 7 - Android

In my case, it seems due to the fact that I closed my AVD between 2 launches of the same app, I got this error message at the second launch.

I didn't need to "Clean" the project, just launched the AVD manually using the AVD manager, waited for it to boot and launched the app again once booting was completed. Worked for me.

Solution 8 - Android

You may have been trying to start the emulator from AVD before this, and from the command line now. Most AVDs use arm instruction sets, so you may have to try something like:

emulator64-arm -avd <your avd label> -no-snapshot-load -no-snapshot-save

Solution 9 - Android

finally i got the solution follow these steps:

1)open avd manager
2)select the avd which is givin this err-"ERROR: Unable to load VM from snapshot. The snapshot has been saved for a different hardware configuration."
3)click on start
4)now uncheck these two options-"launch from snapshot" and "save snapshot"
5)now check "wipe user data"
6)start the avd now
7)as soon as the"ANDROID" is displayed, close the avd
8)now open avd manager again
9)uncheck "wipe user data"
10)check on these two options-"launch from snapshot" and "save snapshot"
11)now start the avd, it would be easily loaded from snapshots without errors

Solution 10 - Android

This is a known issue. Hopefully it will be fixed in the next release of the Android SDK but who knows? I think the solution from user1165694 is easier than the suggested solution on the issue.

Solution 11 - Android

In case anyone uses IntelliJ, in order to disable snapshot do the following:

  1. Open AVD
  2. Select your device and press Start...
  3. Uncheck Launch Snapshot

Solution 12 - Android

Please note : closing the Emulator AFTER the eclipse will cause this same error too. in that case there is no hardware change ofcourse but this Error will show up:

> Unable to load Vm from snapshot. The snapshot has been saved for a > different hardware configuration.

so always close Eclipse, BEFORE the Emulator.

Solution 13 - Android

Got this problem. And found a way. When i do not change anything in configuration, but just starting emulator once again. You need to click "power" button in emulator and then close it. One annoying thing that happens after start from snapshot is - i need to click power button to be able to unlock emulator.

Solution 14 - Android

In my case, this error was shown when I plugged a device whose USB debug mode hadn't been enabled. So no device could be found and running the application caused this error message to show depending on my last run configuration.

Solution 15 - Android

Its because of the process of exiting emulator not done properly. Try finding the running emulator by

ps -ef |grep emulator

Then it will list all the emulator tasks. Try killing the running emulator by

kill -9

Note: don't kill the following

user 0 11:27 pts/11 00:00:00 grep --color=auto emulator

Solution 16 - Android

Clean the project and run on emulator with same api level.

If it still not resolves change once the api level of project and run on emulator with same api level.

In my case it runs ..........

Solution 17 - Android

It is easier. You just have to change the name of your virtual Android device and then delete the one you do not charge and ready :)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser1165694View Question on Stackoverflow
Solution 1 - AndroidChilledratView Answer on Stackoverflow
Solution 2 - Androiduser1165694View Answer on Stackoverflow
Solution 3 - AndroidNacho ColomaView Answer on Stackoverflow
Solution 4 - AndroidMollyView Answer on Stackoverflow
Solution 5 - AndroidK_AnasView Answer on Stackoverflow
Solution 6 - AndroidPratik ButaniView Answer on Stackoverflow
Solution 7 - Android2DeeView Answer on Stackoverflow
Solution 8 - AndroidQuartzView Answer on Stackoverflow
Solution 9 - Androidjapanjot singh suriView Answer on Stackoverflow
Solution 10 - AndroidJosephLView Answer on Stackoverflow
Solution 11 - AndroidH.RabieeView Answer on Stackoverflow
Solution 12 - AndroidShervinView Answer on Stackoverflow
Solution 13 - AndroidArtem LView Answer on Stackoverflow
Solution 14 - AndroidPiovezanView Answer on Stackoverflow
Solution 15 - AndroidBeuView Answer on Stackoverflow
Solution 16 - AndroidDheeresh SinghView Answer on Stackoverflow
Solution 17 - Androidappmobiles.tkView Answer on Stackoverflow