Duplicate class com.google.common.util.concurrent.ListenableFuture found flutter code example
Example 1: java.lang.RuntimeException: Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules guava-20.0.jar (com.google.guava:guava:20.0) and listenablefuture-1.0.jar (com.google.guava:listenablefuture:1.0)
implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
Example 2: Duplicate class com.google.common.util.concurrent.ListenableFuture
configurations {
// Resolves dependency conflict caused by some dependencies use
// com.google.guava:guava and com.google.guava:listenablefuture together.
all*.exclude group: 'com.google.guava', module: 'listenablefuture'
}