Hi! After upgrading android studio to ladybug 2024...
# ksp
j
Hi! After upgrading android studio to ladybug 2024.2.1, I get the following error in my project > Inconsistent JVM-target compatibility detected for tasks ‘compileMyAppReleaseJavaWithJavac’ (17) and ‘kspMyAppReleaseKotlin’ (21). How can ksp use a different java version when I made sure all my modules are on Java 17 with this?
Copy code
extensions.configure<JavaPluginExtension> {
    sourceCompatibility = JavaVersion.VERSION_17
    targetCompatibility = JavaVersion.VERSION_17
}
a
we had similiar issue with java vs kotlin, and found switching the IDE’s jdk to java 17 was the fix. some devs were using 21
(it was the issue in reverse where java was found to be 21 vs kotlin at 17)
j
I tried to change that but it didn't change anything for me
t
j
I will try that
It worked with the kotlin toolchain setup, thanks!
706 Views