79076700

Date: 2024-10-11 03:12:41
Score: 0.5
Natty:
Report link

I think this is caused by the incompatibility of kapt and the lower version of JDK. I have encountered the same problem in my project. I can solve the problem through any of the following methods, and personally recommend the second one

  1. Reduce the version of JDK. (Go to File - Settings - Build,Execution,Deployment - Build Tools - Gradle. Then select a lower version of Gradle JDK such as 17 to Download and use.)

  2. Migrate kapt to ksp, then upgrade kotlin and ksp versions from 1.8.22 to 2.0.20, and then it works.(I don't know if kapt is still available, it's just that ksp is the better option for me right now.)

In your gradle file, the kapt does not appear to be in use, maybe you can try to remove the id("org.jetbrains.kotlin.kapt").

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: czw299