Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not generated DaggerComponents.... build empty #404

Open
ghost opened this issue Aug 28, 2020 · 2 comments
Open

Not generated DaggerComponents.... build empty #404

ghost opened this issue Aug 28, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 28, 2020

...
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'
@ghost
Copy link
Author

ghost commented Aug 31, 2020

Problems in filestype.xml Ignore file kapt....IDEA

@ghost
Copy link
Author

ghost commented Aug 31, 2020

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants