Lint check "RemoveWorkManagerInitializer" fails, how to fix that?

Viewed 673

My App class implements Configuration.Provider.getWorkManagerConfiguration, and regarding this article: https://developer.android.com/topic/libraries/architecture/workmanager/advanced/custom-configuration#on-demand

I switched default initializer with this string in my AndroidManifest.xml:

<provider
    android:name="androidx.work.impl.WorkManagerInitializer"
    android:authorities="${applicationId}.workmanager-init"
    tools:node="remove" />

The code works as I need - no default initializer calls, but the only Configuration.Provider.getWorkManagerConfiguration.

If I run lint check I still see the error: Remove androidx.work.impl.WorkManagerInitializer when using on-deman initialization.


  • Android studio 4.1 beta 5
  • Gradle plugin: 4.1.0-beta05
  • Work manager: 2.3.4

Any thoughts on how to deal with it?

0 Answers
Related