Is there any problem in using Kotlin language leve...
# android
d
Is there any problem in using Kotlin language level 1.9 in Android? (for `data object`s) It seems like Hilt is crashing the compiling ever since...
It seems like I'm starting to get:
Copy code
error: [Hilt]
  Unsupported metadata version. Check that your Kotlin version is >= 1.0: java.lang.IllegalStateException: Unsupported metadata version. Check that your Kotlin version is >= 1.0
ever since I enabled it...
Before that error I got:
Copy code
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jetbrains.kotlin.kapt3.util.ModuleManipulationUtilsKt (file:/home/.../.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-annotation-processing-gradle/1.8.10/ad05a4188f984f89630571206974f0cf52d7ab8f/kotlin-annotation-processing-gradle-1.8.10.jar) to constructor com.sun.tools.javac.util.Context()
WARNING: Please consider reporting this to the maintainers of org.jetbrains.kotlin.kapt3.util.ModuleManipulationUtilsKt
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
e
your annotation processor needs to update kotlinx-metadata-jvm
d
That's funny... When I remove the language level 1.9 even if I don't downgrade dagger, it starts compiling. Unless that language level causes the metadata problem?
e
yes
metadata versions increase with every language level
1
c
Are you using Compose? The latest version works with 1.8.0 versions but not 1.9.0, at least that's what it tells me if I try to use 1.9