I have project that was initially started with Java(contains dagger and moxy frameworks).
I have added room dependency and I have create all room components in kotlin so as dependency I using:
implementation "androidx.room:room-runtime:2.2.6"
kapt "androidx.room:room-compiler:2.2.6"
When I adding apply plugin: 'kotlin-kapt'
I have dagger error:
cannot find symbol DaggerAppComponent;
When I try to add kapt "com.google.dagger:dagger-compiler:$dagger"
the error disappear but I got new error, the moxy(MVP framework)@InjectPresenter
not working in runtime(presenters is null)
moxy initial dependencies
implementation "com.github.moxy-community:moxy:2.2.1"
implementation "com.github.moxy-community:moxy-app-compat:2.2.1"
annotationProcessor "com.github.moxy-community:moxy-compiler:2.2.1"
dagger initial dependencies
annotationProcessor "com.google.dagger:dagger-compiler:$dagger"
testImplementation "com.google.dagger:dagger:$dagger"
testAnnotationProcessor "com.google.dagger:dagger-compiler:$dagger"
androidTestImplementation "com.google.dagger:dagger:$dagger"
androidTestAnnotationProcessor "com.google.dagger:dagger-compiler:$dagger"
implementation "com.google.dagger:dagger:$dagger"
Why when I adding apply plugin: 'kotlin-kapt'
dagger stops compile?