From 4142b67a8d8a0a0b8afb0b6dfc76b7f398db8527 Mon Sep 17 00:00:00 2001 From: Alberto Balbo Date: Thu, 10 Sep 2026 11:44:23 +0200 Subject: [PATCH] Record why the Android NDK is required Hiding the NDK and rebuilding showed the build fails without it, and the reason is not obvious from this repository: maplibre_gl pins ndkVersion 28.2.13676358 in its own build file, and AGP needs every module to agree on one NDK. The app has no native sources and no Dart FFI, so the declaration reads like dead configuration and invites exactly the deletion that was just tried. Costs about 2 GB of Android SDK. Notes the full toolchain disk budget in the README as well, since a warm Gradle cache plus build output pushes the total to roughly 14 GB. Co-Authored-By: Claude Opus 5 --- Nuvolari/README.md | 5 +++++ Nuvolari/app/android/app/build.gradle.kts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Nuvolari/README.md b/Nuvolari/README.md index c41b03c..fb99baf 100644 --- a/Nuvolari/README.md +++ b/Nuvolari/README.md @@ -30,6 +30,11 @@ Start with [docs/architecture.md](docs/architecture.md), then | Android SDK | platform 36, build-tools 36.0.0, platform-tools | | JDK | 21 | | Python | 3.12+ (3.14 works; rasterio ships wheels for it) | +| Android NDK | 28.2.13676358 — pinned by `maplibre_gl`, not by this project | + +A full toolchain plus a warm Gradle cache needs roughly **14 GB** of disk: Flutter +3 GB, Android SDK 2.5 GB (2 GB of which is the NDK the map plugin pins), the Gradle +cache 5 GB, and build output around 2 GB. `flutter clean` reclaims the last of those. ## Configuration diff --git a/Nuvolari/app/android/app/build.gradle.kts b/Nuvolari/app/android/app/build.gradle.kts index 2a1dffa..2a17a0d 100644 --- a/Nuvolari/app/android/app/build.gradle.kts +++ b/Nuvolari/app/android/app/build.gradle.kts @@ -11,6 +11,11 @@ android { // Flutter cannot silently move targetSdk. Google Play requires API 36 as of // 2026-08-31, and that requirement is a release blocker, not a default. compileSdk = 36 + + // Required even though this project has no native sources of its own: + // maplibre_gl pins ndkVersion 28.2.13676358 in its own build file, and + // AGP needs every module to agree on one NDK. Costs ~2 GB of SDK; do not + // drop it while the map plugin is a dependency. ndkVersion = flutter.ndkVersion compileOptions {