# INSTALL_FAILED_INSUFFICIENT_STORAGE: 由于存储空间不足，无法安装软件包

- **ID:** `android/install-failed-insufficient-storage`
- **领域:** android
- **类别:** install_error
- **错误码:** `INSTALL_FAILED_INSUFFICIENT_STORAGE`
- **验证级别:** ai_generated
- **修复率:** 85%

## 根因

设备可用存储空间少于 APK 安装和提取所需的空间。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| Android 13 (API 33) | active | — | — |
| Android 14 (API 34) | active | — | — |
| adb 1.0.41 | active | — | — |

## 解决方案

1. ```
   Free up device storage: delete unused apps, clear cache, or move media to SD card. Then run: adb install -r app-release.apk
   ```
2. ```
   Use adb install with -s flag to install on SD card if available: adb install -s app-release.apk. Requires device support.
   ```

## 无效尝试

- **Clear app data of other apps using Settings > Apps > Clear Data** — Clearing data may free little space; APK extraction needs contiguous free space, not just total free. (60% 失败率)
- **Uninstall the same app and reinstall from Google Play** — If device storage is critically low, Play Store also fails with same error; adb install still fails. (75% 失败率)
