user1165694
user1165694

Reputation: 1285

Android Emulator snapshot error

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

Answers (17)

Beu
Beu

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

K_Anas
K_Anas

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

Shervin
Shervin

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

appmobiles.tk
appmobiles.tk

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

H.Rabiee
H.Rabiee

Reputation: 4837

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

Upvotes: 2

Pratik Butani
Pratik Butani

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.

enter link description here

Upvotes: 9

Nacho Coloma
Nacho Coloma

Reputation: 7338

To remove the list of stored snapshots in your system:

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

Upvotes: 15

Piovezan
Piovezan

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

japanjot singh suri
japanjot singh suri

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

Quartz
Quartz

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

Artem L
Artem L

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

2Dee
2Dee

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

Molly
Molly

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

JosephL
JosephL

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

user1165694
user1165694

Reputation: 1285

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.

Upvotes: 31

Chilledrat
Chilledrat

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:

  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.

Upvotes: 73

Dheeresh Singh
Dheeresh Singh

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

Related Questions