-
Notifications
You must be signed in to change notification settings - Fork 83
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
Anvil with trackSourceFiles enabled double binds on scope change #1056
Comments
Can you post the entire stack trace? When I've run into this, it means exactly what it is saying that there are multiple deps contributed to the graph. A subcomponent can see everything in it's parent scope, but not the other away around. Remember that. So if there is something contributed in both the |
If this isn't the case and there is nothing else actually contributed, it may be a gradle cache issue. Run |
I'm sorry, I don't have a stack trace right now, but it's pretty easy to reproduce by changing the binding scope from a subcomponent to a higher component. The issue is not for the case where we contribute the same binding to multiple related scopes (this is a valid compilation error). Instead, it is a caching issue, as the plugin adds a new binding without clearing the old one. While |
I think that sadly is just a fact of using |
What
If there are subcomponents in your graph as such
Moving a dependency scope from one to the other via
ContributesBinding
will end up witherror: [Dagger/DuplicateBindings]
The text was updated successfully, but these errors were encountered: