-
Notifications
You must be signed in to change notification settings - Fork 207
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
How do you use dagger 2 injection with Moxy #18
Comments
Moxy says that it can't to instantiate class com.jackthreads.android.presenters.PagePresenter. Are sure class is public, and has an empty constructor that is public? You could make gist, then I can help you ;) |
Here you can see, ho to use injection in presenter class. |
The problem I was having after injecting like in your example was that I was getting uninstantiated injected objects. In other cases I got an error from MvpAppCompatActivity crashing at |
Sorry, but I don't understand. Are you need help? |
It's very unuseful to inject objects without constructor like this
because we need to call |
It will be good to inject presenters by some call in views, like
|
Thanks, it's helps :) |
Related question - #100 |
Trying to use the @InjectPresenter in the Views and @InjectViewState preceding the presenter classes but my presenter classes also need to inject modules of their own which I'm doing via the constructor but I get this error
Searching Moxy and Dagger 2 brings up nothing and it seems like they're messing each other up.
The text was updated successfully, but these errors were encountered: