Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Hi! I believe you have to use the same version in the libraries and the gradle plugin. Can you try with: #32

Open
mmn-siddiqui opened this issue Sep 24, 2021 · 4 comments

Comments

@mmn-siddiqui
Copy link

Hi! I believe you have to use the same version in the libraries and the gradle plugin. Can you try with:

dependencies {
    classpath 'com.google.dagger:hilt-android-gradle-plugin:2.28.3-alpha'
}

Originally posted by @manuelvicnt in #10 (comment)

I have the same problem but my libraries and Gradle plugin has same version

@rameshkumarkhatri
Copy link

I am facing the same issue.
using classpath("com.google.dagger:hilt-android-gradle-plugin:2.38.1")

@tridhm-3108
Copy link

tridhm-3108 commented Jul 12, 2022

I facing this problem too and solve this after follow this Stack Overflow. I think your kotlin version is not compatible with Hilt version.

@th3kumar
Copy link

th3kumar commented Aug 1, 2022

Go to https://dagger.dev/hilt/gradle-setup and check Hilt currently version

Update: For now, you can use the newest version.

Kotlin:1.7.10 with Hilt:2.42
kotlin:1.6.0 is compatible with hilt:2.40.5
Kotlin 1.5.21 is compatible with Hilt 2.38.

by @Mario-paul Kotlin '1.8.21' with Hilt '2.46.1' compiled with no issue (2023)

@Mario-paul
Copy link

Go to https://dagger.dev/hilt/gradle-setup and check Hilt currently version

Update: For now, you can use the newest version.

Kotlin:1.7.10 with Hilt:2.42 kotlin:1.6.0 is compatible with hilt:2.40.5 Kotlin 1.5.21 is compatible with Hilt 2.38.

For me Kotlin '1.8.21' with Hilt '2.46.1' compiled with no issue (2023)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants