You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
...
apply plugin: 'kotlin-kapt'
I create an interface in Kotlin.
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
The text was updated successfully, but these errors were encountered: