适用于 Android 的 .NET 错误ADB0060

示例消息

error ADB0060: There is not enough storage space on the device to store package: {packageName}. Free up some space and try again.
error ADB0060: There is not enough storage space on the device to store package: {packageName}. Free up some space or use an SD card and try again.

问题

ADB0060意味着 Android 模拟器或设备上内部或外部磁盘空间已满。

此消息指示 adb (Android 调试桥)报告了INSTALL_FAILED_INSUFFICIENT_STORAGE或INSTALL_FAILED_MEDIA_UNAVAILABLE错误。 adb 是 Android SDK 的一部分,由 .NET for Android 在内部用于与 Android 模拟器和设备通信。 从 Android 文档了解详细信息adb

解决方案

请考虑卸载应用程序或为其他存储添加 SD 卡。

实现说明

请注意,开放源代码 https://github.com/xamarin/xamarin-android 存储库中没有任何内容生成 ADB0060,因为像调试和“快速部署”这样的功能是在专有的 .NET for Android 扩展中实现的。