google / ksp

Kotlin Symbol Processing API
https://github.com/google/ksp
Apache License 2.0
2.84k stars 266 forks source link

Unable to load class 'org.jetbrains.kotlin.gradle.plugin.mpp.pm20.KotlinCompilationData'. #1481

Closed MoatazBadawy closed 1 year ago

MoatazBadawy commented 1 year ago

This happens when migrating from kept to ksp. kotlin JVM version "1.8.21". trying to upgrade to "1.9.0". and also failed.

neetopia commented 1 year ago

make sure the KSP version used in your project matches the compiler version by checking the ksp version number before the -

MoatazBadawy commented 1 year ago

I made some search here in Issues and I found a solution that says I need to use the "1.8.21-1.0.11" version. Thanks for your help :)

DanteAndroid commented 1 year ago

1.8.21-1.0.11

How to check if my ksp/ComposeCompiler versions are right? Thanks!

msinghal34 commented 1 year ago

Need to use 1.8.21-1.0.11 for ksp version. https://youtrack.jetbrains.com/issue/KTIJ-26251

viroth-ty commented 11 months ago

@DanteAndroid If you're using kotlin version 1.9.0, use ksp 1.9.0-1.0.11.

xiaoqiangit commented 9 months ago

改成 id("com.google.devtools.ksp") version "1.8.21-1.0.11" apply false

kid1412621 commented 6 months ago

guess this site might be helpful: https://repo.maven.apache.org/maven2/com/google/devtools/ksp/symbol-processing-gradle-plugin/