Hello there, I want to use kotlin's 1.5.30 feature...
# android
c
Hello there, I want to use kotlin's 1.5.30 feature
jvmToolchain
in my android project, but it doesn't seem to work at all. I have tried to include it, but it just gave errors that it couldn't find the command (in gradle speek). Did anyone here made it work?
No signature of method: build_dhqockpsxvtfi2zvodwaorrxm.kotlin() is applicable for argument types
e
c
Ah I see thanks, yeah I had that issue...
Pretty annoying, as Google forces JDK 11 usage now and the tooling is broken 😄
g
But it’s not different from JDK 8, right:? toolchain is about auto preparation of JDK (and potential jvm version syncing), doesn’t matter for 8, 11 or 16 AS always used bundled JDK, so if you used bundled JDK there are no changes after update on AGP 7.0
c
Yeah locally it works fine, but i had configure our 3 pipelines to use jdk11
g
It was true even before jdk11, you need a server with working java to run android project
Don’t get me wrong, jvmToolchain is a great feature and I would like to use it, but it exists less than a year for Java in Gradle and less than a month in Kotlin, migration to Java 11 was not connected to this feature somehow and toolchains imporant even without context of migration to java11
I think we just used to the fact that you don’t have to update your CI/build environment often, everyone stuck in some super old Java 8 version
c
Yeah, it was no big problem, didn't mean to imply that, sorry :)
Just would have been perfect timing haha
g
Haha, it’s true, also thought about it, but it was not even ready by the time when we did migration, it was good opportunity to update my all ancient Dockerfiles for buid agents, not only for java but for Android cmdline-tools etc