From 1edc31d6a47b472f46119329e88528afe0585819 Mon Sep 17 00:00:00 2001 From: Toni Rico Date: Thu, 5 Dec 2024 11:51:02 +0100 Subject: [PATCH] Downgrade Java version to 1.8 and set kotlin JVM target 1.8 to fix compilation issues in newer android studios (#368) Compiling the android app in newer android studios was failing because it was trying to use jvm 21, which isn't compatible. Additionally as @JayShortway, we were using a higher version of Java that we should. We were mostly ok, but this brings the levelt to the same as our native android SDK and other hybrids. --- android/build.gradle | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 0bdc438..fe497dd 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -39,8 +39,11 @@ android { abortOnError false } compileOptions { - sourceCompatibility JavaVersion.VERSION_17 - targetCompatibility JavaVersion.VERSION_17 + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' } }