Guava version compatibility issue

Spring Boot errors

An attempt was made to call the method;CLjava/lang/Object;)V 
but it does not exist
An attempt was made to call the method;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V 
but it does not exist
An attempt was made to call the method; 
but it does not exist

Pure Java exceptions


Suggested solutions

MethodGuava version / 26.0-android / 19.0

Let me remind you that guava with maven is connected like this:


If suggested verions don’t fix the problem, you can try connecting the specified versions in order: 18.0 / 19.0 / 21.0 / 26.0-jre / 26.0-android.

If this does not help, it means that there are conflicting libraries in the project. In my case, Apache Curator library required version 18, and gRPC required version 26.0-android.

This is solved by updating the version of the library that uses the old version of guava. I updated the Apache Curator version and it worked.
This was figured out thanks to the fact that I built the maven dependency structure with this command:

mvn dependency:tree

If you need a settings file for maven to work, you can add the settings flag:

mvn dependency:tree -settings.xml
Telegram channel

If you still have any questions, feel free to ask me in the comments under this article or write me at

If I saved your day, you can support me 🤝

Leave a Reply

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