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


Android Studio says:

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

But I have it in Module class:

public DangerousMaterialsFirePermissionsPresenter providesDangerousMaterialsFirePermissionsPresenter(DangerousMaterialsFirePermiissionsPresenterImpl presenter){
    return presenter;

Why it says that? How to solve it?

Source: Android Questions

Categorized as android, dagger-2


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