Loading...
Loading...
Use when a Flutter Android build fails (`flutter build apk`, Gradle errors, plugin incompatibility, AGP/Gradle version conflicts, native-assets errors like sqlite3_initialize, ENOSPC/disk full, corrupted pub cache). Diagnose by finding the blame line in the Gradle output, apply the matching fix from the symptom table, then verify with a clean build.
npx skill4agent add hoangsoft90/ai_skills flutter-android-build-triageflutter build apk --debug 2>&1 | grep -B5 -A15 -iE 'what went wrong|error:|caused by|Could not|ENOSPC|No space|license|sdk' | head -60sqlite3_initializeflutter clean && flutter pub get && flutter build apk --debugBuilt build/app/outputs/flutter-apk/app-debug.apkflutter analyzeflutter test| Blame line | Diagnosis | Fix |
|---|---|---|
| Flutter template shipped AGP 9.0.1 + Gradle 9.1; some pub plugins (older DSL) are incompatible with AGP 9 | Pin AGP 8.9.1 in |
Plugin error mentioning | Plugin version pinned far too old (no | Upgrade the plugin to a current major ( |
Runtime | | Downgrade to |
| Disk full (often >95%); partially-written caches corrupt | Free space ( |
| Corrupted cache from an earlier ENOSPC/crash | Run |
flutter_secure_storage ^10file_picker ^10sqlite3 ^2.9sqlite3_flutter_libs ^0.5df -h /System/Volumes/Data