Search code examples
androidkotlinandroid-jetpack-composebuild.gradledagger-hilt

Unresolved reference: kept in compose project


I am building jetpack compose project in android studio and i am unable to add Dagger Hilt libraries. it gives error of 'unable to resolve "kept"'

I have added classpath and plugin for Dagger-Hilt, and i have added the dependecies like below

implementation ("com.google.dagger:hilt-android:2.48")
kept ("com.google.dagger:hilt-compiler:2.43.2")
implementation ("androidx.hilt:hilt-navigation-compose:1.1.0")

Solution

  • There is no such thing as kept in Android. Please change the spelling from kept to kapt.