Currently, I\'m using WorkManager 1.0.0-alpha02.
def work_version = \"1.0.0-alpha02\" implementation \"android.arch.work:work-runtime:$work_version\" // use -ktx
beginUniqueWork() returns a WorkContinuation object. You need to call enqueue on that WorkContinuation to actually enqueue it with WorkManager:
beginUniqueWork()
enqueue
WorkContinuation
workManager.beginUniqueWork( SyncWorker.TAG, ExistingWorkPolicy.REPLACE, oneTimeWorkRequest ).enqueue();