Reputation: 5266
I am trying to build an app that is based on [todo-mvp-dagger] and retrofit. After creating the initial classes, modules, room db (first time using) and rebuilding the project, I am receiving an error: cannot find symbol variable DaggerAppComponent
Following todo-mvp-dagger app from Google Android Architecture sample.
The [todo-mvp-dagger] app is building fine but mine is not.
What am I missing?
Here is my project repository.
Code is minimized now
UPDATE
I updated the Dagger version and now I am getting following errors
error: cannot find symbol variable DaggerAppComponent
/Users/abhinavtyagi/Documents/workspace/workspace_android/Research/UdacityCourseViewer/app/build/generated/source/apt/debug/com/tyagiabhinav/udacitycourseviewer/di/DaggerApplicationComponent.java:
uses unchecked or unsafe operations.
Recompile with -Xlint:unchecked for details.
/Users/abhinavtyagi/Documents/workspace/workspace_android/Research/UdacityCourseViewer/app/build/generated/source/apt/debug/com/tyagiabhinav/udacitycourseviewer/di/DaggerApplicationComponent.java: uses unchecked or unsafe operations. Recompile with -Xlint:unchecked for details.
Upvotes: 1
Views: 737
Reputation: 1245
replace DaggerAppComponent
with DaggerApplicationComponent
since your component name is ApplicationComponent
not AppComponent
Upvotes: 1