Hello everyone, I saw the guide adding hilt to and...
# android
t
Hello everyone, I saw the guide adding hilt to android like this @HiltAndroidApp class MyApplication: Hilt_MyApplication() But when I try to follow it, when building it fails not foumd Hilt_MyApplication Can anyone help me do the above
not kotlin but kotlin colored 5
Why do you react it's not kotlin @Hristijan???
d
Hey, Did you also declare Appliocation inside manifest file?
t
Yes, exactly, I also defined it in manifest.
d
Instead of extending Hilt_MyApplication, use Application instead
Like this
t
I think it's not possible, because I'm developing an application in automative, then I can't use an application instead of Hilt_Application
c
not kotlin but kotlin colored because of ⬇️
a
You are missing the Hilt's gradle plugin .. More info here under
Apply Hilt Gradle Plugin with Plugins DSL
l
@Tran Thang inbox
t
Thanks to eveyone, i got answer, when i convert to ksp it work