I have a really basic dagger setup in my android app. I basically just followed the dagger guide/tutorial and now I went to add dagger-reflect by Jake Wharton, but now my basic setup won't compile because the
builder()
method isn't available on MyAppComponent. Anyone have any ideas? The readme doesn't say that I need to change anything. Opened an issue here as well
https://github.com/JakeWharton/dagger-reflect/issues/191
EDIT 1: I did find this issue (
https://github.com/JakeWharton/dagger-reflect/issues/145) which seems similar, but it doesn't really have a solution? The last semi-helpful response there is to use
@Component.Factory
but I'm not sure how that helps. Android Dagger guide doesn't talk about that at all, which just makes it weird that dagger reflect doesn't work with a "typical"/basic dagger setup.
EDIT 2: Also found this
https://github.com/JakeWharton/dagger-reflect/issues/4 where Jake says "in general you should refactor to
@BindsInstance
and stateless modules."
Maybe that's my solution? But how do I move my simple setup to "BindsInstance and stateless modules". That's going wayy over my head. In the same comment JW seems to mention that Builder() should also already work? Sorry for being a dagger noob here