Step #3: Adding the Dependency

As with the other Jetpack libraries that we have used, we need to add another dependency to our ever-growing list of dependencies. So, add this line to the dependencies closure of the app/build.gradle file:

  implementation "androidx.work:work-runtime-ktx:2.6.0"

This specifically pulls in a KTX version of the WorkManager library, so we can better integrate WorkManager with Kotlin, specifically with coroutines.


Prev Table of Contents Next

This book is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license.