WorkManager is not initialized properly
04:03 26 Apr 2022

I am using work manager in my application and with the latest library

implementation 'androidx.work:work-runtime:2.7.1'

In the manifest

 
    

Application class

class App : Application(), Configuration.Provider {
override fun getWorkManagerConfiguration() =
    Configuration.Builder()
        .build()

override fun onCreate() {
    super.onCreate()
    WorkManager.initialize(this, Configuration.Builder().build())
}
}

I have added the initialization in application class. And yet I still face this erro

java.lang.IllegalStateException: WorkManager is not initialized properly.  You have explicitly disabled WorkManagerInitializer in your manifest, have not manually called WorkManager#initialize at this point, and your Application does not implement Configuration.Provider.
android android-workmanager