my solution is to add
apply plugin: 'kotlin-kapt'
and remove
kapt {
generateStubs = true
}
This helped me to fix this issue
Add this in the top of the build.gradle
apply plugin: 'kotlin-kapt'
Inside android
tag add
kapt {
generateStubs = true
}
And then replace
annotationProcessor 'com.google.dagger:dagger-compiler:2.11'
to
kapt 'com.google.dagger:dagger-compiler:2.11'
Now Rebuild
the project by
Build -> Rebuild project
Please try enabling stubs generation, this might be the reason why the class is not visible at this stage of the build process. In your build.gradle
file, top level:
kapt {
generateStubs = true
}
I've already downloaded your Github project. Thanks for sharing!
The answer for your issue is pretty simple:
Build -> Rebuild project
Dagger dependencies files will be recreated and app after would launched with any problem.
I checked already this with Android Studio 2.1.2 version. It works
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With