Hi all, I'm facing this error during the build of an Android app:
Execution failed for task 'module securitycompileDebugKotlin'.
'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain
Any idea on what I'm doing wrong? I'm configuring for all the gradle-modules the java version to 17
Thanks
v
Vampire
04/17/2024, 3:05 PM
What AGP version do you use?
a
alfdev
04/17/2024, 3:10 PM
Copy code
8.3.0-alpha17
v
Vampire
04/17/2024, 3:11 PM
And you set the JVM toolchain? or how do you "configuring the java version to 17"?
a
alfdev
04/17/2024, 3:15 PM
I was only configuring the java version, now configuring the toolchaing is building something 🙂