Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules guava-20.0.jar (com.google.guava:guava:20.0)

后端 未结 8 1685
[愿得一人]
[愿得一人] 2020-12-08 03:58

When I use implementation \'com.google.firebase:firebase-inappmessaging-display:17.2.0\' in my app/build.gradle, I get this error:



        
8条回答
  •  心在旅途
    2020-12-08 04:24

    2020 Solution

    Google knows about this error so they made a special package to fix the conflict.

    Add this to your build.gradle

    implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
    

提交回复
热议问题