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

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

问题描述

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

更新后,当我用模拟器AVD_GalaxyNexus_ToolsForApacheCordova (Android 4.4 - API 19)开始调试时,出现如下错误:

<块引用>

InstallPackageAssemblies"任务意外失败.

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

这并没有在更新前几分钟发生,并且该项目在更新期间保持不变.我对此非常肯定.

Xamarin 文档在这里记录了这个错误,并说:

<块引用><块引用>

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

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

emulator -partition-size 512 -avd MonoDroid

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

解决方案

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

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

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

The "InstallPackageAssemblies" task failed unexpectedly.

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.

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

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

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

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.

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

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