Skip to content

[KSP2] A failure occurred while executing com.google.devtools.ksp.gradle.KspAAWorkerAction #1941

Closed

Description

In this and this KMP projects, when I turn on KSP2 it will fail kspKotlinIosSimulatorArm64 with:

e: [ksp] java.lang.NullPointerException: null cannot be cast to non-null type org.jetbrains.kotlin.load.java.structure.impl.JavaClassImpl

* What went wrong:
Execution failed for task 'shared:kspKotlinIosSimulatorArm64'.
> A failure occurred while executing com.google.devtools.ksp.gradle.KspAAWorkerAction
   > null cannot be cast to non-null type org.jetbrains.kotlin.load.java.structure.impl.JavaClassImpl

using:

kotlin = "2.0.0"
ksp = "2.0.0-1.0.21"
ksp.useKSP2=true

possible duplicate of #1929

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions