How to get kapt to work with Kotlin DSL in android...
# kapt
m
How to get kapt to work with Kotlin DSL in android. I've searched this thread but couldn't get a proper answer. I'm basically trying to get Hilt working on Kotlin DSL (in android). I've tried the following
Copy code
plugins {
    kotlin("kapt")
}
and
apply(plugin = "kotlin-kapt")
But when I try to add this, it doesn't work.
Copy code
dependencies {
    kapt(SupportLibs.ANDROID_DAGGER_HILT_COMPILER)
}
It imports "org.jetbrains.kotlin.kapt3.base.Kapt.kapt" which says Type mismatch. Required: KaptOptions Found: String Am I missing something. I'm new to Kotlin DSL in android. I've searched for it a lot but couldn't find anything. Any help would be highly appreciated. Thanks