Flutter java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class

Error

* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: 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)

Fix

implementation 'com.google.guava:guava:28.2-android'

https://medium.com/@nhancv

https://www.upwork.com/fl/nhancv

The Best/Expert Flutter Freelancers For Hire In Vietnam — Upwork™

Leave a Reply

Your email address will not be published.Required fields are marked *