Skip to content

Not generated DaggerComponents.... build empty #404

Open
@ghost

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions