© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Vincent Tsen
Native Android Kotlin Developer
Introduction There are 3 type of dependency injections: Manual dependency injection - Inject dependency through constructor parameters Service locator - Singleton container that holds the dependencies Dependency injection library - Library/framework...
There is an exception in your WorkManager (SyncWorker).
E/WM-WorkerWrapper: Work [ id=6af5c166-3d6b-4676-84be-e9d89ca36521, tags={ vtsen.hashnode.dev.androidnews.app.workers.SyncWorker } ] failed because it threw an exception/error java.util.concurrent.ExecutionException: kotlin.UninitializedPropertyAccessException: lateinit property repository has not been initialized at androidx.work.impl.utils.futures.AbstractFuture.getDoneValue(AbstractFuture.java:516) at androidx.work.impl.utils.futures.AbstractFuture.get(AbstractFuture.java:475) at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:311) at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:920) Caused by: kotlin.UninitializedPropertyAccessException: lateinit property repository has not been initialized
Maksim Filatov
I think there is a solution how to fix it developer.android.com/training/dependency-injection/hilt-jetpack#workmanager
Tony Houghton
My app didn't already have an Application, and this is the only article I could find on what to do about that. But what should I put in the class body? Is it OK to leave it blank?
Yes, you can leave it blank. That should be fine. :)
There is an exception in your WorkManager (SyncWorker).
E/WM-WorkerWrapper: Work [ id=6af5c166-3d6b-4676-84be-e9d89ca36521, tags={ vtsen.hashnode.dev.androidnews.app.workers.SyncWorker } ] failed because it threw an exception/error java.util.concurrent.ExecutionException: kotlin.UninitializedPropertyAccessException: lateinit property repository has not been initialized at androidx.work.impl.utils.futures.AbstractFuture.getDoneValue(AbstractFuture.java:516) at androidx.work.impl.utils.futures.AbstractFuture.get(AbstractFuture.java:475) at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:311) at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:920) Caused by: kotlin.UninitializedPropertyAccessException: lateinit property repository has not been initialized