k

    kagomez

    5 months ago
    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?
    FunkyMuse

    FunkyMuse

    5 months ago
    You need to annotate your Application with @HiltApplication and also add it to the manifest under android:name