Open waqas-334 opened 2 years ago
Same
The way I was able to fix this was by changing the javaVersion
within the Dependencies.kt
file to use JavaVersion.VERSION_1_8
According to the google docs hilt uses Java Version 8
Had the same issue with M1 MacBook.
Fixed it by removing id("dagger.hilt.android.plugin")
and adding apply(plugin = "dagger.hilt.android.plugin")
at the end of the app's build.gradle.kts
file. Also, comment out hilt { enableAggregatingTask = true }
Then sync gradle. Once it's done, you can uncomment hilt
block, and move plugin to where it was.
It should work now.
Still not able to solve this issue . . anyone facing the same ?
Same issue here.
Hey, I just cloned the latest project from the main branch but couldn't run it. As soon as the Gradle sync ends, the following error pops up. I tried many things but couldn't get it up and running.
Can you please help me with it?
ERROR MESSAGE: The Hilt Android Gradle plugin is applied but no com.google.dagger:hilt-android dependency was found.\
I am running it on MacBook M1