Skip to content
Advertisement

Cannot resolve method ‘combinations’ in ‘Sets’

I was trying to build a project in Intellij-idea with Maven and got a error saying that "Cannot resolve method 'combinations' in 'Sets'

The code where the error is showing is here : Code!

JavaScript

The imports im using :

JavaScript

I have guava dependency in the pom.xml, tried putting this dependency but it doesn’t work:

JavaScript

Image with the error when i try to build it : Build

Advertisement

Answer

try this in your pom.xml

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement