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

后端 未结 8 1684
[愿得一人]
[愿得一人] 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:26

    I found the solution at How to solve Program type already present: com.google.common.util.concurrent.ListenableFuture?. user2297550 said:

    I merely added implementation 'com.google.guava:guava:27.0.1-android' at the end of my app gradle file and the error went away.

    That was the solution for me. Now I have this and my app compiles correctly:

    implementation 'com.google.firebase:firebase-inappmessaging-display:17.2.0'
    implementation 'com.google.guava:guava:27.0.1-android'
    

提交回复
热议问题