codepath / codepath/android_guides
Not generated DaggerComponents.... build empty
- Dominant language
- No language data
- Stars
- 28.3k
- Forks
- 6.2k
- PR merge metrics
- No merged PRs in 30d
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'
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.