I've 2 small questions: Why is the expected versio...
# compiler
p
I've 2 small questions: Why is the expected version 1.6 when I have 1.8 everywhere in my code ? Why can I still compile using
gradle build
but intellij says it can't build the project:
Copy code
/home/merlijn/.gradle/caches/modules-2/files-2.1/com.google.devtools.ksp/symbol-processing-gradle-plugin/1.8.21-1.0.11/84f788fcf1cbc31bb6491f29df3343c8b5fcc7c1/symbol-processing-gradle-plugin-1.8.21-1.0.11.jar!/META-INF/gradle-plugin.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
This happened when I wanted to update from 1.6 compiler to 1.8 along with kotlin 1.7.20 libs to 1.8.20
y
You might be using an outdated gradle version I think. The Kotlin gradle plugin sets a specific Kotlin version for other gradle plugins to use, and KSP 1.8.21 likely needs Kotlin 1.8.0, which I believe should be the default in Gradle 8.0
296 Views