Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError: 'dagger.model.BindingGraph dagger.model.BindingGraph.create(com.google.common.graph.Network, boolean) #121

Open
Jesse-Weinstein-Zonar opened this issue Nov 28, 2022 · 2 comments
Assignees
Labels
needs info Label to mark issues awaiting response from the author

Comments

@Jesse-Weinstein-Zonar
Copy link

Jesse-Weinstein-Zonar commented Nov 28, 2022

When I enable scabbard on my project (not FOSS, sadly, so I can't share it), the build fails with this ... less than clear error. I've observed it while using the most recent version of Dagger2, 2.44.2.

Caused by: java.lang.NoSuchMethodError: 'dagger.model.BindingGraph dagger.model.BindingGraph.create(com.google.common.graph.Network, boolean)'
	at dagger.model.BindingGraphProxies.bindingGraph(BindingGraphProxies.java:32)
	at dagger.internal.codegen.binding.BindingGraphConverter.convert(BindingGraphConverter.java:79)
	at dagger.internal.codegen.ComponentProcessingStep.isValid(ComponentProcessingStep.java:254)
	at dagger.internal.codegen.ComponentProcessingStep.processRootComponent(ComponentProcessingStep.java:151)
	at dagger.internal.codegen.ComponentProcessingStep.process(ComponentProcessingStep.java:131)
	at dagger.internal.codegen.ComponentProcessingStep.process(ComponentProcessingStep.java:62)
	at dagger.internal.codegen.validation.TypeCheckingProcessingStep.lambda$process$0(TypeCheckingProcessingStep.java:51)
	at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:185)
	at dagger.internal.codegen.validation.TypeCheckingProcessingStep.process(TypeCheckingProcessingStep.java:48)
	at dagger.internal.codegen.ComponentProcessingStep.process(ComponentProcessingStep.java:124)
	at dagger.internal.codegen.ComponentProcessingStep.process(ComponentProcessingStep.java:62)
	at dagger.internal.codegen.statistics.DaggerStatisticsCollectingProcessingStep.process(DaggerStatisticsCollectingProcessingStep.java:52)
	at dagger.shaded.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:330)
	at dagger.shaded.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:181)
	at org.gradle.api.internal.tasks.compile.processing.DelegatingProcessor.process(DelegatingProcessor.java:62)
        ...

I'm still working on trying to debug it, but wanted to drop an issue here, mainly just in case anyone else comes across it, they will know. they aren't alone.

@arunkumar9t2 arunkumar9t2 self-assigned this Nov 29, 2022
@arunkumar9t2 arunkumar9t2 added the needs info Label to mark issues awaiting response from the author label Nov 29, 2022
@arunkumar9t2
Copy link
Owner

Thanks for reporting, may I know the Dagger version you are using and if upgrading Dagger fixes it?

@Jesse-Weinstein-Zonar
Copy link
Author

Whoops, forgot that -- I can confirm that I see the problem when using the most current version of Dagger2, 2.44.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info Label to mark issues awaiting response from the author
Projects
None yet
Development

No branches or pull requests

2 participants