From 02eb3445abadc0df9faaf1bcab0f2d4516496bf7 Mon Sep 17 00:00:00 2001 From: Hugh Daschbach Date: Mon, 6 Nov 2023 15:50:46 -0800 Subject: [PATCH] Update JavaVersion from 11 to 17. Needed by Gradle V8. Error message: * What went wrong: Execution failed for task ':app:kaptGenerateStubsDebugKotlin'. > 'compileDebugJavaWithJavac' task (current target is 11) and 'kaptGenerateStubsDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version. --- app/build.gradle.kts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 894d3be..592e964 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -36,8 +36,8 @@ androidGitVersion { android { compileOptions { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } namespace = "audio.funkwhale.ffa" @@ -47,7 +47,7 @@ android { } kotlinOptions { - jvmTarget = JavaVersion.VERSION_11.toString() + jvmTarget = JavaVersion.VERSION_17.toString() } buildFeatures {