codelab-android-hilt icon indicating copy to clipboard operation
codelab-android-hilt copied to clipboard

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

Open mmn-siddiqui opened this issue 4 years ago • 4 comments

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 https://github.com/googlecodelabs/android-hilt/issues/10#issuecomment-717750343

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

mmn-siddiqui avatar Sep 24 '21 10:09 mmn-siddiqui

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

rameshkumarkhatri avatar Jun 01 '22 05:06 rameshkumarkhatri

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

tridhm-3108 avatar Jul 12 '22 02:07 tridhm-3108

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)

th3kumar avatar Aug 01 '22 19:08 th3kumar

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)

Mario-paul avatar Jul 03 '23 21:07 Mario-paul