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:
- Created 4 years ago
- Comments:7 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I works with this: https://github.com/f-droid/fdroiddata/commit/5c02375034e5e9ae324c6f4993bce77f18565981
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.