Reputation: 1285
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.
Upvotes: 71
Views: 82516
Reputation: 1632
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
Upvotes: 0
Reputation: 31456
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.
Upvotes: 10
Reputation: 233
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.
Upvotes: 1
Reputation: 89
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 :)
Upvotes: -2
Reputation: 4837
In case anyone uses IntelliJ, in order to disable snapshot do the following:
Upvotes: 2
Reputation: 62439
Maybe try to disable the hardware snapshot in the Android Virtual Device Manager? It should be installed wherever you installed the android SDK.
Upvotes: 9
Reputation: 7338
To remove the list of stored snapshots in your system:
rm ~/.android/avd/[your_avd_name]/snapshots.img*
Upvotes: 15
Reputation: 3223
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.
Upvotes: 0
Reputation: 31
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
Upvotes: 3
Reputation: 1851
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
Upvotes: 3
Reputation: 10253
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.
Upvotes: 0
Reputation: 8621
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.
Upvotes: 3
Reputation: 131
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.
Upvotes: 13
Reputation: 5973
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.
Upvotes: 2
Reputation: 1285
resolved issue by:
Upvotes: 31
Reputation: 2605
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:
Upvotes: 73
Reputation: 15701
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 ..........
Upvotes: -2