diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 9b9a1e97..1cd9db81 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -97,6 +97,17 @@ detekt { autoCorrect = false } +// detekt 1.23.7 bundles kotlin-compiler-embeddable 1.9.10, which caps +// `--jvm-target` at 22. The runner's JDK is 25 and detekt would auto- +// detect that, so pin the analyzer target to match our actual bytecode +// target (17). +tasks.withType().configureEach { + jvmTarget = "17" +} +tasks.withType().configureEach { + jvmTarget = "17" +} + dependencies { implementation(libs.androidx.core.ktx) implementation(libs.androidx.lifecycle.runtime.compose)