Join Slack
Powered by
Hi, is there a correct way to inject objects into ...
# 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?
kagomez
03/29/2022, 3:06 PM
@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
Open in Slack
Previous
Next