From 8bdf451e7a7aad8e13adc74dea014edd39bad762 Mon Sep 17 00:00:00 2001 From: Mo Date: Mon, 30 Jun 2025 15:46:26 +0300 Subject: [PATCH] Fix: set jvmTarget to 17 and java to 17 --- android/app/build.gradle | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index b6d4ec5..61447d0 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -29,14 +29,16 @@ android { ndkVersion = "27.0.12077973" compileOptions { - sourceCompatibility = JavaVersion.VERSION_21 - targetCompatibility = JavaVersion.VERSION_21 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + } + + kotlinOptions { + jvmTarget = "17" } defaultConfig { applicationId = "com.ragheb.neumorphic_calculator" - // You can update the following values to match your application needs. - // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. minSdk = 21 targetSdk = 34 versionCode = flutterVersionCode.toInteger() @@ -45,7 +47,6 @@ android { buildTypes { release { - // Signing with the debug keys for now, so `flutter run --release` works. signingConfig = signingConfigs.debug } }