Skip to content

The Hilt Android Gradle plugin can only be applied to an Android project. #4734

Open
@malikbilal1997

Description

@malikbilal1997

I'm facing this exception as I update the dagger hilt version to 2.53 or above, it's working fine till 2.52

The Hilt Android Gradle plugin can only be applied to an Android project.

[libraries]

hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "dagger-hilt" }
hilt-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "dagger-hilt" }

[plugins]

dagger-hilt = { id = "com.google.dagger.hilt.android", version.ref = "dagger-hilt" }

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