Код: Выделить всё
/MyApplication_HiltComponents.java:166: error: [Dagger/MissingBinding] com.apps.jobwishlist3.core.domain.usecase.JobUseCase cannot be provided without an @Provides-annotated method.
public abstract static class ApplicationC implements MyApplication_GeneratedInjector,
^
A binding with matching key exists in component: com.apps.jobwishlist3.MyApplication_HiltComponents.ActivityC
com.apps.jobwishlist3.core.domain.usecase.JobUseCase is requested at
com.apps.jobwishlist3.di.FullTimeModuleDependencies.jobUseCase()
Я уже сделал все необходимое для рукояти кинжала, как этот код
Код: Выделить всё
@EntryPoint
@InstallIn(ApplicationComponent::class)
interface FullTimeModuleDependencies {
fun jobUseCase(): JobUseCase
}
Код: Выделить всё
@Component(dependencies = [FullTimeModuleDependencies::class])
interface FullTimeComponent {
fun inject(activity: FullTimeActivity)
@Component.Builder
interface Builder {
fun context(@BindsInstance context: Context): Builder
fun appDependencies(fullTimeModuleDependencies: FullTimeModuleDependencies): Builder
fun build(): FullTimeComponent
}
}
Код: Выделить всё
DaggerFullTimeComponent.builder()
.context(this)
.appDependencies(
EntryPointAccessors.fromApplication(
applicationContext,
FullTimeModuleDependencies::class.java
)
)
.build()
.inject(this)
это мой полный проект, если вам нужно знать все: https://github.com/cube76/JobWishlist3
Подробнее здесь: https://stackoverflow.com/questions/662 ... act-static
Мобильная версия