Room Retrofit Dagger2 MVP: Error: cannot find symbol variable DaggerAppComponent
Room Retrofit Dagger2 MVP: Error: cannot find symbol variable DaggerAppComponent
我正在尝试构建一个基于 [todo-mvp-dagger] 和改造的应用程序。创建初始 类、模块、房间数据库(第一次使用)并重建项目后,我收到错误消息:找不到符号变量 DaggerAppComponent
正在关注来自 Google Android 架构示例的 todo-mvp-dagger 应用。
[todo-mvp-dagger] 应用程序构建良好,但我的应用程序不是。
我错过了什么?
这是我的 project repository.
代码现在已最小化
更新
我更新了 Dagger 版本,现在出现以下错误
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:
使用未经检查或不安全的操作。
重新编译 -Xlint:unchecked 以获取详细信息。
将 DaggerAppComponent
替换为 DaggerApplicationComponent
因为您的组件名称是 ApplicationComponent
而不是 AppComponent
我正在尝试构建一个基于 [todo-mvp-dagger] 和改造的应用程序。创建初始 类、模块、房间数据库(第一次使用)并重建项目后,我收到错误消息:找不到符号变量 DaggerAppComponent
正在关注来自 Google Android 架构示例的 todo-mvp-dagger 应用。
[todo-mvp-dagger] 应用程序构建良好,但我的应用程序不是。
我错过了什么?
这是我的 project repository.
代码现在已最小化
更新
我更新了 Dagger 版本,现在出现以下错误
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: 使用未经检查或不安全的操作。 重新编译 -Xlint:unchecked 以获取详细信息。
将 DaggerAppComponent
替换为 DaggerApplicationComponent
因为您的组件名称是 ApplicationComponent
而不是 AppComponent