gpt4 book ai didi

android - 启动Android模拟器时"There is not enough storage space on the device to store package"

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:21:06 29 4
gpt4 key购买 nike

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

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

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.

这不是在更新前几分钟发生的,并且项目在更新期间保持不变。我对此非常确定。

Xamarin 文档记录了此错误 here ,并说:

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

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

emulator -partition-size 512 -avd MonoDroid

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

最佳答案

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

关于android - 启动Android模拟器时"There is not enough storage space on the device to store package",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37836021/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com