I have a build that generates Android artefacts (mainly an .aar
) and bundles in dokka
-generated docs (codebase is Kotlin+Java).
With some recent changes dokka
started failing with this cryptic error:
> Task :mylib:dokka FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mylib:dokka'.
> com.intellij.psi.impl.source.PsiClassImpl cannot be cast to com.intellij.psi.PsiJavaFile
Any help would be appreciated. I currently cannot seem to trace the source of this.