From 7e4509cf9ecd03e87db2faceca48f31520e1e8a1 Mon Sep 17 00:00:00 2001 From: Thore Goebel Date: Tue, 14 Jan 2025 16:51:26 +0100 Subject: [PATCH] Add Kotlin jvmTarget Without this, the build fails for me with (likely because my installation defaults to Java 21): Execution failed for task ':app:compileFullDebugKotlin'. > Inconsistent JVM-target compatibility detected for tasks 'compileFullDebugJavaWithJavac' (17) and 'compileFullDebugKotlin' (21). --- app/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 431ca4f2b..e97690f02 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -102,6 +102,10 @@ android { targetCompatibility JavaVersion.VERSION_17 } + kotlinOptions { + jvmTarget = '17' + } + aaptOptions { cruncherEnabled = false }