Dagger 2 says "class cannot be provided without an @Provided annotation method, but the class HAS @Provides annotation

Published

Android Studio says:

DangerousMaterialsFirePermissionsPresenter cannot be provided without an @Provides-annotated method.

But I have it in Module class:

@Provides
@DangerousMaterialsFireWorkScope
public DangerousMaterialsFirePermissionsPresenter providesDangerousMaterialsFirePermissionsPresenter(DangerousMaterialsFirePermiissionsPresenterImpl presenter){
    return presenter;
}

Why it says that? How to solve it?

Source: Android Questions

Published
Categorized as android, dagger-2

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq