46

I just updated my HAXM to version 6.2.1 . When I run the emulator I get an error message in the event log of the android studio:

Emulator: emulator: ERROR: Missing initial data partition file: /Users/blabla/.android/avd/Pixel_2_XL_API_25.avd/userdata.img

Nevertheless, the app runs without any problems in the emulator. Does anybody know the solution not to get this message again? Thank You

Edit: Now it works right. I closed and opened android studio

leonheess
  • 16,068
  • 14
  • 77
  • 112
user4938227
  • 588
  • 1
  • 5
  • 10

2 Answers2

55

As per the comment of @user4938227 (and my experience) it seems like it's a one time warning the should happen at the first run of the emulator. Avd creates the file and on the following runs it shouldn't appear.

Chiptus
  • 949
  • 9
  • 25
  • 7
    they still didn't fix it, they could just show message like "some file does not exist we will create it for you", but no they still show those scary messages – user25 May 15 '18 at 20:15
3

Update

You need to update Android Emulator and HAXM,

  • Go to Tools > SDK Manager
  • Update Android Emulator and HAXM installer

sc

Community
  • 1
  • 1
Khemraj Sharma
  • 57,232
  • 27
  • 203
  • 212