Closed forntoh closed 4 years ago
Hi! Have you removed the default initialiser from the AndroidManifest.xml
file? The Hilt docs mention it.
See this other link to the WorkManager docs to do that.
Also, your modules are installed in the ActivityComponent
instead of the ApplicationComponent
or SingletonComponent
. If you're trying to inject that info in an Application
, those bindings should be available there
Thanks a lot, I made the module to be installed in ApplicationComponent
, and have started using hilt's work manager factory.
I am trying to inject a WorkManagerFactory into my Application class, I get the following error for the dependencies needed
The app builds successfully when I just remove the field in the Application class but I need it to inject dependencies into my WorkManager
Application class
Work Manager factory
NetworkModule
BaseApiManager
DataManagerModule
DataManagerAuth