question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove androidx.work.impl.WorkManagerInitializer from your AndroidManifest.xml

See original GitHub issue
> Task :vector:lintVitalFdroidRelease
/home/bubu/projects/oss/fdroiddata/build/im.vector.riotx/vector: Error: Remove androidx.work.impl.WorkManagerInitializer from your AndroidManifest.xml when using on-demand initialization. [RemoveWorkManagerInitializer]

   Explanation for issues of type "RemoveWorkManagerInitializer":
   If an android.app.Application implements
   androidx.work.Configuration.Provider,
   the default androidx.work.impl.WorkManagerInitializer needs to be removed
   from the
   AndroidManifest.xml file.

1 errors, 0 warnings

> Task :vector:lintVitalFdroidRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':vector:lintVitalFdroidRelease'.
> Lint found fatal errors while assembling a release target.
  
  To proceed, either fix the issues identified by lint, or modify your build script as follows:
  ...
  android {
      lintOptions {
          checkReleaseBuilds false
          // Or, if you prefer, you can continue to check for errors in release builds,
          // but continue the build even when errors are found:
          abortOnError false
      }
  }
  ...

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

0reactions
bmartycommented, Jun 28, 2020

It is not yet, but you have removed the lint check on your build chain 😃. We have the same error now and we will have to fix. For the moment, I have added abortOnError false as a quick fix, but this is not ideal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WorkManager - Should we remove the default initializer, when ...
The error occurs when I'm exporting APK. C:\app: Error: Remove androidx.work.impl.WorkManagerInitializer from your AndroidManifest.xml when ...
Read more >
Custom WorkManager Configuration and Initialization
Android Developers · Docs More. Platform Android Studio Google Play Jetpack Kotlin Games. Language. English · Bahasa Indonesia · Español – América Latina ......
Read more >
Use of WorkManager in Android App (Part-4)
To do so, update AndroidManifest.xml using the merge rule tools:node="remove" : <provider android:name="androidx.work.impl.WorkManagerInitializer"
Read more >
Untitled
... RemoveWorkManagerInitializer: Remove androidx.work.WorkManagerInitializer from your AndroidManifest.xml when using on-demand initialization.
Read more >
Configure WorkManagerInitializer at AppStartup-kotlin
Note that you also must remove the default initializer from the AndroidManifest.xml : <application> <provider android:name="androidx.work.impl.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found