From 0d189740d92c29e02641174635923447e0bccfe0 Mon Sep 17 00:00:00 2001 From: Himanshu Choudhary Date: Mon, 23 Jun 2025 16:37:58 +0530 Subject: [PATCH] Update build.gradle Solvig this issue: FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':serious_python_android'. > com.android.builder.errors.EvalIssueException: [CXX1110] Platform version 16 is unsupported by this NDK. Please change minSdk to at least 21 to avoid undefined behavior. To suppress this error, add android.ndk.suppressMinSdkVersionError=21 to the project's gradle.properties or set android.experimentalProperties["android.ndk.suppressMinSdkVersionError"]=21 in the Gradle build file. --- src/serious_python_android/android/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serious_python_android/android/build.gradle b/src/serious_python_android/android/build.gradle index 01d7e2f3..366ca7e2 100644 --- a/src/serious_python_android/android/build.gradle +++ b/src/serious_python_android/android/build.gradle @@ -54,7 +54,7 @@ android { } defaultConfig { - minSdkVersion 16 + minSdkVersion 21 ndk { abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64' @@ -129,4 +129,4 @@ if (System.getenv('SERIOUS_PYTHON_BUILD_DIST')) { task copyOrUntar(dependsOn: packageTasks) } -preBuild.dependsOn copyOrUntar \ No newline at end of file +preBuild.dependsOn copyOrUntar