I am trying to use WorkManager 1.0.0-alpha09. and getting this error:
Program type already present:
com.google.common.util.concurrent.ListenableFuture
Message{kind=ERROR, text=Program type already present:
com.google.common.util.concurrent.ListenableFuture, sources=[Unknown source
file], tool name=Optional.of(D8)}
If i use version 1.0.0-alpha08 or less. I don't get this error, but i need public constructor
public Worker(Context context, WorkerParameters workerParams)
Take a look at https://issuetracker.google.com/issues/116154359.
The workaround is:
implementation("android.arch.work:work-runtime:1.0.0-alpha09") {
exclude group: 'com.google.guava', module: 'listenablefuture'
}