how to use hilt with ksp instead of kapt seems like i can't figure it out please let me know what dependencies should i add and how should i add them
dependencies i added:
//hilt
val hiltVersion = "2.51"
implementation("com.google.dagger:hilt-android:$hiltVersion")
ksp("com.google.dagger:hilt-android-compiler:$hiltVersion")
ksp("com.google.dagger:hilt-compiler:$hiltVersion")
plugins:
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id ("com.google.dagger.hilt.android")
id("com.google.devtools.ksp") version "1.9.22-1.0.17"
}
build gradle:
plugins {
id("com.android.application") version "8.2.2" apply false
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
id("com.google.dagger.hilt.android") version "2.51" apply false
id("com.google.devtools.ksp") version "1.9.22-1.0.17" apply false
}
i tried different hilt versions like 2.48.1 different kotlinCompilerExtensionVersion like 1.5.8
nothing seems to work i've got multiple different errors don't know what i'm doing neither do i know what i'm doing wrong