https://kotlinlang.org logo
#dagger
Title
# dagger
k

kagomez

03/29/2022, 3:05 PM
Hi, is there a correct way to inject objects into an Application class in Android using Hilt?
@Inject lateinit var logger: Logger
is crashing because logger has not been initialized, any suggestions?
f

FunkyMuse

03/29/2022, 6:07 PM
You need to annotate your Application with @HiltApplication and also add it to the manifest under android:name