Abhinav Tyagi
Abhinav Tyagi

Reputation: 5266

Room Retrofit Dagger2 MVP: Error: cannot find symbol variable DaggerAppComponent

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.

enter image description here

Code is minimized now

UPDATE
I updated the Dagger version and now I am getting following errors

  1. error: cannot find symbol variable DaggerAppComponent
  2. /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

Answers (1)

Saurabh
Saurabh

Reputation: 1245

replace DaggerAppComponent with DaggerApplicationComponent since your component name is ApplicationComponent not AppComponent

Upvotes: 1

Related Questions