Skip to content

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

@GuilhE

Description

@GuilhE

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions