65

In the latest update for Android studio, the emulator has started saving snapshots of the current state of the device by default and going back to that snapshot when reopened, which is not the behavior that I want. How can I disable that and go back to the previous behavior, where it just closes and resets the emulator?

UI after hitting the X button to close

enter image description here

Android Studio 3.0.1, with Emulator version 27.0.2 and HAXM 6.2.1

Patrick Beagan
  • 906
  • 1
  • 7
  • 11
  • 3
    i don't understand why we need to have this feature, cos it never worked for me. It cost a lot of time to save the state, then and cost a lot of time to initialize the state again (but mostly it will hang), and then I have to use the cool boot again – Thai Tran Apr 24 '18 at 03:18
  • i5 7th gen, 1TB HDD, 128GB SSD, 2GB 1050GTX, 16GB ram and my entire computer freezes because of this. Wtf. Useless feature – TheRealChx101 Jan 17 '19 at 15:21

3 Answers3

88

disable that and go back to the previous behavior

Unselect quick boot as shown below

This is default behaviour from update of Android Studio 3.0

Please unselect quick boot if you don't want to save state and select cold boot

Check quick boot emulator in details

Steps

1> Choose device like phone - pixel 2

2> select your system image

3> Verify configuration - show advance setting - emulator performance check cold boot to disable

4> Finish

enter image description here

OR

you can also change it from

Emulator --> More --> Settings --> Change quick-boot state --> Save

enter image description here

Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
  • 7
    You won't be able to find it in the Emulator > Settings anymore. Now this is located in Snapshots => Settings => Save quick-boot state on exit for AVD... – Roni Litman Jan 29 '19 at 11:49
23

Updated thanks to @James KO Steps are very similar:

... (on the right panel) -> Snapshots tap -> Settings (top tab on detail view) -> Auto-save current state to Quickboot dropdown

updated image

end update

In the latest version of the Android Studio (I am running 3.1.2), it is no longer in the AVD Manager settings. I found it under Extended Controls on emulator itself.

  1. Start emulator
  2. Click three dots (...) on emulator panel enter image description here
  3. Go to Settings -> General, towards the bottom "Save quick-boot state on exit for AVD:" enter image description here
mike.tihonchik
  • 6,855
  • 3
  • 32
  • 47
  • 11
    Since this post was written a few months ago, it's moved to yet another location. On the left-hand menu there is a new section called "Snapshots", click that and then click the "Settings" tab under that section to get to this option. – James Ko Jul 28 '18 at 21:10
  • 1
    @JamesKo Could you post your comment as an answer to save poor people like me from scratching the head after reading all the now misleading answers? – Hong Nov 15 '18 at 16:13
  • 1
    @Hong I updated answer above with James Ko answer. Thank you James Ko – mike.tihonchik Nov 26 '18 at 17:34
6

You can also do it via command line:

emulator @avd_name -no-snapshot-save 

check details

huseyin
  • 1,367
  • 16
  • 19