How to remedy error caused by guava: Program type already present: com.google.common.util.concurrent.internal.InternalFutures

ぃ、小莉子 提交于 2019-12-05 14:37:56

Since Guava 27.0, ListenableFuture is located in separate artifact, see the announcement. You can try two things (one at a time):

  1. Exclude "listenablefuture" module (group "com.google.guava") and build your project again.
  2. I don't know the AAR specifics, but it could be that 27.0-android doesn't work with AAR, so you should try 26.0-android instead.

I had to update to version 27.0.1, at the time of writing they still haven't updated the README with this new version.

implementation 'com.google.guava:guava:27.0.1-android'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!