-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Dagger doesn't implement component method if the method is used only in generated code #665
Comments
Having a problem which is probably related to this issue. Android data binding library generates The interesting moment is that if I redeclare all the methods of |
I have the same issue. Answer by @iovorobiev helped me until I cleaned project. Every time I clean a project, build fails with error "DaggerBindingComponent is not abstract and does not override abstract method". Simple solution is adding and removing methods from DataBindingComponent after every clean up. Could you help me? Dagger 2.13 |
The same issue here, any new solution now? Thanks! |
I believe this is another instance of google/auto#660. As soon as we find a way to fix that cleanly, this should be fixed. |
This seems to still be an issue when extending the E.g. This worked fine in Java:
But I had to override the method when the component was written in Kotlin:
Versions used: Android Studio 3.4.0, Dagger 2.22.1, Kotlin 1.3.30. |
You should update your blog post! This is still an issue, it's confusing to have to override it and have it do nothing, very unintuitive. Google, please create a guide for the use case of injecting a dependency into a BindingAdapter. That blog post is excellent but it's about the only thing on the whole internet that I could find. |
It's a while ago now, I've forgotten how I stumbled upon this. As my example in there post doesn't include this I'll update it. |
Hi,
I've found strange problem when using custom annotation processor in project with Dagger. Minimal working sample here:
dagger-sample-repo-2.zip
Steps to reproduce (as implemented in attached project):
Am I doing something wrong? Tried with latest Dagger version, latest build tools etc. Thanks!
The text was updated successfully, but these errors were encountered: