I am migrating to the new dagger android 2.11
All set up based on the Google blueprint :MVP-Dagger.but I am having this error :
Error:(22, 57) error: @Binds methods must have only one parameter whose type is assignable to the return type
Here in this line :
@ActivityScoped
@Binds abstract PresenterFactory<MainContract.Presenter> providePresenterFactory(MainPresenter presenter);
The presenter :
@ActivityScoped
public class MainPresenter extends BasePresenterImpl<MainContract.View>
implements MainContract.Presenter { public MainPresenter(String s) {..
} ... }
Someone have any idea on how to solve this? Thanks.