I cloned this old Android project that uses kapt
, after I updated all the dependencies and I made sure everything is working fine, I decided to migrate from kapt
to ksp
I followed the instructions provided in the documentation
I keep getting this error:
Unable to load class 'org.jetbrains.kotlin.gradle.plugin.mpp.pm20.KotlinCompilationData'
org.jetbrains.kotlin.gradle.plugin.mpp.pm20.KotlinCompilationData
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
I have followed all the provided instructions from restarting, redownloading, cleaning the project, deleting all the Gradle caches, but I keep getting this error, when I tried to migrate back to kapt
the project worked just fine!