Good luck, I'm currently studying on Dagger 2
and the MVP
architecture, and doing some test projects.
The problem is that I'm stuck in an error and can not see the solution.
Unresolved reference: DaggerHelloComponent
This is my module:
@Module
class HelloModule {
lateinit var activityDagger: HelloActivityDagger
constructor(activityDagger: HelloActivityDagger) {
this.activityDagger = activityDagger
}
@Provides
fun providesHelloPresenter(): HelloActivityPresenterDagger = HelloActivityPresenterDagger(activityDagger)
}
And this my component:
@Component(modules = [HelloModule::class])
interface HelloComponent {
fun inject(activityDagger: HelloActivityDagger)
}
So when I try to builder
on my HelloActivityDagger
DaggerHelloComponent.create().inject(this)
I get the above error.
Does anyone know what the problem might be?