I have implemented Hilt dependencies in my project, but when I need the @Inject annotation for my constructor, it's not working. basically when I tried to import it manually i found out, the inject folder inside javax is empty. So the structure is like javax.inject. And after that I get nothing as the inject folder is empty. I have tried rebuilding and cleaning he project. I also tried by Invalidating caches but nothing seems to work. How can I make this work ?
Dependencies List
dependencies {
implementation(project(":shared"))
implementation(AndroidX.appCompat)
implementation(Compose.runtime)
implementation(Compose.runtimeLiveData)
implementation(Compose.ui)
implementation(Compose.material)
implementation(Compose.uiTooling)
implementation(Compose.foundation)
implementation(Compose.compiler)
implementation(Compose.constraintLayout)
implementation(Compose.activity)
implementation(Compose.navigation)
implementation(Google.material)
implementation(Hilt.hiltAndroid)
implementation(Hilt.hiltNavigation)
kapt(Hilt.hiltCompiler)
implementation(Kotlinx.datetime)
debugImplementation(SquareUp.leakCanary)
}
Hilt version - 2.37