question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compatibility with Guava 22.0-android

See original GitHub issue

It seems that Dagger 2.11 is not compatible with Guava 22.0-android due to the loss of methods like SetMultimap.forEach. When compiling an Android project with both libraries I’m receiving the following error. Will there be an effort to stay compatible with the new *-android line of Guava releases?

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.lang.NoSuchMethodError: com.google.common.collect.SetMultimap.forEach(Ljava/util/function/BiConsumer;)V

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10

github_iconTop GitHub Comments

3reactions
ronshapirocommented, May 29, 2017

The annotation processor classpath should be separate from the compile time classpath. I presume you’re getting this error because you have a compile dep on guava-android; if so, can you add an annotationProcessor 'com.google.guava:guava:22.0 dep too? If that fixes it, we should update our docs

1reaction
tbroyercommented, May 29, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading Guava dependency to Guava 22 - Google Groups
'com.google.guava:guava:22.0-android' is a compatible subset and works on Android. It would be nice to see the bitcoinj dependency updated to a more recent...
Read more >
Annotation Type GwtCompatible - Guava
When applied to a method, the return type of the method is GWT compatible. It's useful to indicate that an instance created by...
Read more >
Beta (Guava: Google Core Libraries for Java 22.0-rc1-android API)
An API bearing this annotation is exempt from any compatibility guarantees made by its containing library. Note that the presence of this annotation...
Read more >
Relationship between "Guava" and "Guava for Android" in ...
the "Android" flavor, which omits those methods so that it is compatible with older versions of Android and with Java 7. Each "flavor"...
Read more >
android - Duplicate class com.google.common.util.concurrent ...
implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'. This works but I encountered another issue- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found