Skip to content

Bug: ClassNotFoundException, but it does exist in the project #1038

@juliocbcotta

Description

@juliocbcotta

Hello there, I am trying to read my annotation using

classDeclaration.getAnnotationsByType(ActivityReference::class).first()

and getting this error

Caused by: com.google.devtools.ksp.KSTypeNotPresentException: java.lang.ClassNotFoundException: com.veepee.vpcore.route.BarImpl

This is a bit odd since the full qualified name in the exception seems to correct.

I tried this, but I still got the same error.

A project to reproduce it is attached here

To my specific needs I don't need to instantiate the annotation, but to get the String with the qualified name for ActivityReference.activityName, would it be possible with KSP ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions