Skip to content

[ksp] [Hilt] Expected @AndroidEntryPoint to have a value. Did you forget to apply the Gradle Plugin? #4766

Open
@sunilsunny565

Description

@sunilsunny565

Hi my app is using ksp1 currently and I'm trying to update it to ksp2. And for that I have updated following libs
Hilt: 2.55 -> 2.56.2
Kotlin: 2.0.0 -> 2.1.21
ksp : 2.0.0-1.0.24 -> 2.1.21-2.0.1
but on compilation I'm getting this error

e: [ksp] [Hilt] Expected @androidentrypoint to have a value. Did you forget to apply the Gradle Plugin? (com.google.dagger.hilt.android)

I already have com.google.dagger.hilt.android plugin applied and the code is working without any change in ksp1.

Below is the activity I'm getting the error on, it's a very simple activity.
Image

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