Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 681
user1165694 Avatar asked May 11 '12 18:05

user1165694


People also ask

Why is my Android Emulator not working?

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.

Why AVD Manager is not working?

SDK Build Tools are not installed If it fails then you may have to install it again. You look at the build tab at the bottom of the screen, it will display the error message and option to install the Build tools. Install it and you should be able to see the AVD Manager. Another way is to go to the SDK Manager.

Where are Android Emulator screenshot stored?

Press for 3 dots. Then Press the Settings and in top right corner you will see the screenshot folder location.


3 Answers

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.
like image 138
Chilledrat Avatar answered Nov 02 '22 23:11

Chilledrat


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.
like image 44
user1165694 Avatar answered Nov 02 '22 23:11

user1165694


To remove the list of stored snapshots in your system:

rm ~/.android/avd/[your_avd_name]/snapshots.img*
like image 42
Nacho Coloma Avatar answered Nov 03 '22 01:11

Nacho Coloma