From d178309fd4b5c389656325919e71eb6dbaa6f235 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 27 Jan 2026 20:37:54 +0100 Subject: [PATCH] Explicitly set ndkVersion to Flutter's Without this, webcrypto.dart uses AGP's default NDK version, which can be different from Flutter's preferred NDK version. Apart from causing builds to download multiple NDKs needlessly, this also causes APKs to not use 16 KB page sizes. Tested by building an APK and opening it in Android Studio's APK analyzer. --- android/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/android/build.gradle b/android/build.gradle index f9936e17..47612c5b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -28,6 +28,7 @@ android { namespace 'dev.google.webcrypto' compileSdk = flutter.compileSdkVersion + ndkVersion = flutter.ndkVersion // We depend on cmake for the native parts. externalNativeBuild {