Nikola Milovic
10/26/2019, 3:00 PMtseisel
10/26/2019, 4:30 PMApplicationComponent
, the modules it includes and check that your project builds without errors (and if it fails, copy the error trace)Nikola Milovic
10/26/2019, 4:49 PM@Singleton
@Component(
modules = [
ApplicationModule::class
])
interface ApplicationComponent : AndroidInjector<QuoteApplication> {
@Component.Factory
interface Factory {
fun create(@BindsInstance applicationContext: Context): ApplicationComponent
}
}
tseisel
10/26/2019, 5:12 PMimplementation "com.google.dagger:dagger:$dagger_version"
implementation "com.google.dagger:dagger-android-support:$dagger_version"
kapt "com.google.dagger:dagger-android-processor:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
You also need to add apply plugin: 'kotlin-kapt'
for kapt to work properly.Nikola Milovic
10/26/2019, 6:35 PMtseisel
10/27/2019, 10:47 AMgradlew app:assembleDebug --scan
should do the trick. This way we could review your build to see if something prevents Dagger from generating your component.Nikola Milovic
10/27/2019, 4:47 PM