Skip to content
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

getting error while injecting into map #6

Open
nikhilsol89 opened this issue Apr 15, 2018 · 1 comment
Open

getting error while injecting into map #6

nikhilsol89 opened this issue Apr 15, 2018 · 1 comment

Comments

@nikhilsol89
Copy link

I am getting below error

error: java.util.Map<java.lang.Class<? extends android.app.Activity>,javax.inject.Provider<com.example.di.ActivityComponentBuilder>> cannot be provided without an @Provides- or @Produces-annotated method.

@charurani15
Copy link

charurani15 commented Apr 16, 2018

@frogermcs

I am getting this error in multi-module architecture application.

My core module has component and subcomponent with builder pattern implemented and MyApplication class has Map field with provider for builders.
My app module has AppMainApplication class extending from MyApplication .

I am getting this error:
Error:(12, 24) error: java.util.Map<java.lang.Class<? extends android.app.Activity>,javax.inject.Provider<multibinding.demo.com.core.di.activity.ActivityComponentBuilder>> cannot be provided without an @Provides- or @Produces-annotated method.
java.util.Map<java.lang.Class<? extends android.app.Activity>,javax.inject.Provider<multibinding.demo.com.core.di.activity.ActivityComponentBuilder>> is injected at
multibinding.demo.com.core.MyApplication.activityComponentBuilders
multibinding.demo.com.multibindingsubcomponentbuilderdemo.AppMainApplication is injected at
multibinding.demo.com.multibindingsubcomponentbuilderdemo.SecondComponent.inject(application)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants