The Wayback Machine - https://web.archive.org/web/20201111034223/https://github.com/codepath/android_guides/issues/404
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
BitMobix opened this issue Aug 28, 2020 · 2 comments
Open

Not generated DaggerComponents.... build empty #404

BitMobix opened this issue Aug 28, 2020 · 2 comments

Comments

@BitMobix
Copy link

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

@BitMobix BitMobix commented Aug 31, 2020

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

@BitMobix
Copy link
Author

@BitMobix BitMobix commented Aug 31, 2020

Fixed

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.