Can not resolve symbol DaggerApplicationComponent

你离开我真会死。 提交于 2019-12-05 06:50:15

This error is not related to your Gradle configuration.

DaggerApplicationComponent is a class that Dagger generates for ApplicationComponent interface that you defined. If there is any error during code generation (e.g. missing @Provides method), Dagger will not generate DaggerApplicationComponent and you'll get this error.

What you need to do is to read the entire error output in AndroidStudio and try to understand why Dagger failed.

I also encountered a very nasty behavior when some import statements were missing in project files. In these cases Dagger will fail, but will not tell you exactly what the problem is and you'll need to look for it by yourself.

If you need further help - attach the build error output to the question.

There is a simple solution for this, just rebuild the project and it might work

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!