From 7f97e6c88ab2af4c36441530888d9143c5cbca4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Andra=C5=A1ec?= Date: Mon, 25 Nov 2024 16:08:45 +0100 Subject: [PATCH] Fix: Support 16kb pages in sample app (#2445) --- flutter/example/android/app/build.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/flutter/example/android/app/build.gradle b/flutter/example/android/app/build.gradle index 5fc6400f37..17a318857d 100644 --- a/flutter/example/android/app/build.gradle +++ b/flutter/example/android/app/build.gradle @@ -56,7 +56,11 @@ android { externalNativeBuild { cmake { - arguments.add(0, "-DANDROID_STL=c++_static") + arguments.addAll([ + "-DANDROID_STL=c++_static", + // https://developer.android.com/guide/practices/page-sizes#compile-r27 + "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON" + ]) } } @@ -66,7 +70,7 @@ android { } } - ndkVersion "25.1.8937393" + ndkVersion "27.2.12479018" externalNativeBuild { cmake {