(#) androidx.work:work-runtime
Name
: WorkManager Runtime
Description
: Android WorkManager runtime library
License
: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
Vendor
: Android Open Source Project
Identifier
: androidx.work
Feedback
: https://issuetracker.google.com/issues/new?component=409906
Min
: Lint 8.0 and 8.1
Compiled
: Lint 8.7+
Artifact
: androidx.work:work-runtime:2.10.0
(##) Included Issues
|Issue Id |Issue Description |
|--------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|
|[BadConfigurationProvider](BadConfigurationProvider.md.html) |Invalid WorkManager Configuration Provider |
|[IdleBatteryChargingConstraints](IdleBatteryChargingConstraints.md.html) |Constraints may not be met for some devices |
|[InvalidPeriodicWorkRequestInterval](InvalidPeriodicWorkRequestInterval.md.html)|Invalid interval duration |
|[BadPeriodicWorkRequestEnqueue](BadPeriodicWorkRequestEnqueue.md.html) |Use `enqueueUniquePeriodicWork()` instead of `enqueue()` |
|[RemoveWorkManagerInitializer](RemoveWorkManagerInitializer.md.html) |Remove androidx.work.WorkManagerInitializer from your AndroidManifest.xml when using on-demand initialization|
|[UseRxSetProgress2](UseRxSetProgress2.md.html) |`setProgress` is deprecated. Use `setCompletableProgress` instead. |
|[SpecifyForegroundServiceType](SpecifyForegroundServiceType.md.html) |Specify foreground service type |
|[SpecifyJobSchedulerIdRange](SpecifyJobSchedulerIdRange.md.html) |Specify a range of JobScheduler ids |
|[WorkerHasAPublicModifier](WorkerHasAPublicModifier.md.html) |ListenableWorkers constructed using the default WorkerFactories need to be public |
(##) Including
!!!
This is not a built-in check. To include it, add the below dependency
to your project.
```
// build.gradle.kts
implementation("androidx.work:work-runtime:2.10.0")
// build.gradle
implementation 'androidx.work:work-runtime:2.10.0'
// build.gradle.kts with version catalogs:
implementation(libs.work.runtime)
# libs.versions.toml
[versions]
work-runtime = "2.10.0"
[libraries]
# For clarity and text wrapping purposes the following declaration is
# shown split up across lines, but in TOML it needs to be on a single
# line (see https://github.com/toml-lang/toml/issues/516) so adjust
# when pasting into libs.versions.toml:
work-runtime = {
module = "androidx.work:work-runtime",
version.ref = "work-runtime"
}
```
2.10.0 is the version this documentation was generated from;
there may be newer versions available.
(##) Changes
* 2.3.0: First version includes BadConfigurationProvider,
BadPeriodicWorkRequestEnqueue, RemoveWorkManagerInitializer.
* 2.3.1: Adds SpecifyForegroundServiceType.
* 2.3.4: Adds InvalidPeriodicWorkRequestInterval,
SpecifyJobSchedulerIdRange.
* 2.4.0: Adds IdleBatteryChargingConstraints, UseRxSetProgress2,
WorkerHasAPublicModifier.
(##) Version Compatibility
There are multiple older versions available of this library:
| Version | Date | Issues | Compatible | Compiled | Requires |
|-------------------:|----------|-------:|------------|--------------:|---------:|
| 2.10.0|2024/10/30| 9| Yes| 8.7+|8.0 and 8.1|
| 2.9.1|2024/08/07| 9| Yes| 8.0 and 8.1|8.0 and 8.1|
| 2.9.0|2023/11/29| 9| Yes| 8.0 and 8.1|8.0 and 8.1|
| 2.8.1|2023/03/22| 9| Yes| 7.3 and 7.4| 7.0|
| 2.8.0|2023/02/08| 9| Yes| 7.3 and 7.4| 7.0|
| 2.7.1|2021/11/17| 9| Yes| 7.1| 4.1|
| 2.7.0|2021/10/13| 9| Yes| 7.1| 4.1|
| 2.6.0|2021/09/01| 9| Yes| 7.0| 4.1|
| 2.5.0|2021/01/27| 9| Yes| 4.1| 3.3|
| 2.4.0|2020/07/22| 9| Yes| 3.3| 3.3|
| 2.3.4|2020/03/18| 6| Yes| 3.3| 3.3|
| 2.3.3|2020/03/04| 4| Yes| Not specified| 3.3|
| 2.3.2|2020/02/19| 4| Yes| Not specified| 3.3|
| 2.3.1|2020/02/05| 4| Yes| Not specified| 3.3|
| 2.3.0|2020/01/22| 3| Yes| Not specified| 3.3|