“设备上没有足够的存储空间来存储包裹".启动Android模拟器时 [英] "There is not enough storage space on the device to store package" when starting Android emulator

查看:912
本文介绍了“设备上没有足够的存储空间来存储包裹".启动Android模拟器时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在Visual Studio 2015中更新了Xamarin(这是Visual Studio的建议更新).

I have just updated Xamarin in Visual Studio 2015 (it was a suggested update from Visual Studio).

更新后,当我开始使用仿真器AVD_GalaxyNexus_ToolsForApacheCordova (Android 4.4 - API 19)进行调试时,会发生以下错误:

After the update, when I start debugging with the emulator AVD_GalaxyNexus_ToolsForApacheCordova (Android 4.4 - API 19), the following error occurs:

"InstallPackageAssemblies"任务意外失败.

The "InstallPackageAssemblies" task failed unexpectedly.

System.AggregateException:发生一个或多个错误. ---> Xamarin.AndroidTools.AndroidDeploymentException:InternalError ---> Mono.AndroidTools.InsufficientSpaceException:设备上没有足够的存储空间来存储软件包:/data/local/tmp/Mono.Android.Platform.ApiLevel_23.apk .释放一些空间或使用SD卡,然后重试.

System.AggregateException: One or more errors occurred. ---> Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> Mono.AndroidTools.InsufficientSpaceException: There is not enough storage space on the device to store package: /data/local/tmp/Mono.Android.Platform.ApiLevel_23.apk. Free up some space or use an SD card and try again.

这不是在更新前几分钟发生的,并且在更新过程中项目保持不变.我对此很确定.

This did not occur just minutes before the update, and the project remained untouched during the update. I am quite sure about that.

Xamarin文档在此处中记录了该错误,并说:

The Xamarin documentation has this error documented here, and says:

设备上没有足够的存储空间来部署程序包

There is not enough storage space on the device to deploy the package

当您不从Visual Studio中启动仿真器时,就会发生这种情况.在Visual Studio外部启动仿真器时,您需要传递-partition-size 512选项,例如

This occurs when you don't start the emulator from within Visual Studio. When starting the emulator outside of Visual Studio, you need to pass the -partition-size 512 options, e.g.

emulator -partition-size 512 -avd MonoDroid

但是我确实从Visual Studio中启动了模拟器.

But I did start the emulator from within Visual Studio.

推荐答案

检查模拟器的内部存储大小和可用存储.默认配置通常不是很大.

Check the internal storage size and available storage of your emulator. Default configuration is often not very large.

这篇关于“设备上没有足够的存储空间来存储包裹".启动Android模拟器时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆