Irc*_*ver 5 android kotlin dagger-2
I'm trying to make multi module project with Dagger2. You can see my code following the link. In the main branch is working solution where all the dagger classes are in presentation module.
Now I'm trying to make separate app module for the DI root. You can see the latest attempts in the develop branch. It's not working. I want to make my root ApplicationComponent component in app module and add there PresentationComponent (sub)component from other module. Every time I try something, eventually I get following:
dagger.internal.codegen.ComponentProcessor was unable to process 'ru.ircover.schultetables.app.ApplicationComponent' because not all of its dependencies could be resolved. Check for compilation errors or a circular dependency with generated code
这很奇怪,因为与分支相比,我没有更改任何依赖项main。唯一改变的是从根组件ApplicationComponent到子组件的新链接PresentationComponent。据我了解,没有办法将循环依赖显示为app模块,并且其内容在模块中不可见presentation。我已经遵循了我在谷歌上遇到的所有教程,但没有一个有帮助。
我已经尝试过的:
Builder或Factory子组件。subcomponent。inject子组件的方法移至父组件。现在我被困住了。问题似乎出在组件或模块连接中的某个地方,但我无法找到它发生的位置和方式。我这里需要帮助。
小智 1
我已经成功地通过这些更改构建了您的项目:



| 归档时间: |
|
| 查看次数: |
13923 次 |
| 最近记录: |