Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unresolved reference DaggerApplicationComponent

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