简体   繁体   English

模拟器:模拟器:错误:缺少初始数据分区文件:

[英]Emulator: emulator: ERROR: Missing initial data partition file:

I just updated my HAXM to version 6.2.1 .我刚刚将我的 HAXM 更新到版本 6.2.1 。 When I run the emulator I get an error message in the event log of the android studio:当我运行模拟器时,我在 android studio 的事件日志中收到一条错误消息:

Emulator: emulator: ERROR: Missing initial data partition file: /Users/blabla/.android/avd/Pixel_2_XL_API_25.avd/userdata.img模拟器:模拟器:错误:缺少初始数据分区文件:/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我关闭并打开了android studio

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.根据@user4938227 的评论(以及我的经验),似乎是一次性警告应该在模拟器第一次运行时发生。 Avd creates the file and on the following runs it shouldn't appear. Avd 创建该文件,在接下来的运行中它不应出现。

Update更新

You need to update Android Emulator and HAXM,您需要更新 Android Emulator 和 HAXM,

  • Go to Tools > SDK Manager转到Tools > SDK Manager
  • Update Android Emulator and HAXM installer更新 Android 模拟器和 HAXM 安装程序

sc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM