Open

Description
...
apply plugin: 'kotlin-kapt'
dependencies {
implementation 'com.google.dagger:dagger-android:2.20'
implementation 'com.google.dagger:dagger-android-support:2.20' // if you use the support libraries
kapt 'com.google.dagger:dagger-android-processor:2.20'
kapt 'com.google.dagger:dagger-compiler:2.20'
}
I create an interface in Kotlin.
@Component
interface AppComponentKotlin {
}
I make Build.Rebuild end up empty
Which is interesting if you use the java. That is, create an interface in java, and remove the apply plugin: 'kotlin-kapt'.
then Dagger works
implementation 'com.google.dagger:dagger-android:2.20'
implementation 'com.google.dagger:dagger-android-support:2.20' // if you use the support libraries
annotationProcessor 'com.google.dagger:dagger-android-processor:2.20'
annotationProcessor 'com.google.dagger:dagger-compiler:2.20'
Metadata
Metadata
Assignees
Labels
No labels