Hey folks, wondering if anyone has run into this e...
# community-support
a
Hey folks, wondering if anyone has run into this error before with the autonomousapps dependency analysis plugin? TaskExecutionException: Execution failed for task 'my subprojectgraphViewMain' Caused by: java.lang.NoSuchMethodError: 'com.google.common.graph.ElementOrder com.google.common.graph.ElementOrder.stable()' at com.autonomousapps.model.DependencyGraphView$Companion.newGraphBuilder$dependency_analysis_gradle_plugin(DependencyGraphView.kt:35)
v
I did not, but the error means that the plugin is using a method that is present in Guava 29.0 and newer, but somehow you got a classpath with an older Guava version where the method is not present.
a
yeah that's what I figured...I added a version constraint to resolve to 31 but still getting it and nothing's showing up other than 31 in my lockfiles...I guess I'm going to have to do some dependencyInsight digging 🙂
v
The other version could also come in through a parent classloader. For example if you have an older version somehow in the settings classpath or in the dependencies of
buildSrc
, ...
✅ 1
You could set a breakpoint and check which classloader
com.google.common.graph.ElementOrder
class is coming from
✅ 1
a
ok will do, thanks Vampire!
👌 1