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 {