I want inject a WorkManager instance with Dagger2 to use it in my ViewModel like this
class MyViewModel @Inject constructor(workManager: WorkManager) : ViewModel()
When I try to create a Module for WorkManager to provide an instance of it I getting an error that says, I can't provide from an abstract class. How can inject an instance of WorkManager in my ViewModel constructor?