Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process guava-21.0.jar Android 3.1 Dev Channel

I had the same issue in react-native project,

the below lines worked for me,

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
} 

Update your Guava version

Guava 21 is Java 8 only.

Update your gradle to Guava version 27.0.1-android, which is compatible with Android:

Gradle 4.6+:

dependencies {
  implementation 'com.google.guava:guava:27.0.1-android'
}

Previous Gradle versions:

dependencies {
  compile 'com.google.guava:guava:27.0.1-android'
}

I had same problem and I solved it cleaning project and rebuilding it.

In Android Studio go to Build --> Clean Project and after, Build --> Rebuild Project

Hope it helps