Program type already present: com.google.common.util.concurrent.ListenableFuture

Add the following code snippet to your project inside gradle.properties.

android.useAndroidX=true
android.enableJetifier=true

Then Clean and finally Build the project. It should work. If you are still getting errors, copy and paste the logs here.

Edit: Add the following to your build.gradle in app module.

configurations {
    all*.exclude group: 'com.google.guava', module: 'listenablefuture'
}

The error is usually caused by some dependecies that implements Google's guava library.