FactoryRegistry and MemberInjectorRegistry are not generated for module
See original GitHub issueHi! I use this guide for setup multi module project. I have two module: auth and app: module auth has dependencies
api "com.github.stephanenicolas.toothpick:toothpick-runtime:$versions.toothpik"
kapt "com.github.stephanenicolas.toothpick:toothpick-compiler:$versions.toothpik"
and module app has configurations for kapt
kapt {
generateStubs true
arguments {
arg("toothpick_registry_package_name", appId)
arg('toothpick_registry_children_package_names', "ru.rm.auth")
}
}
and dependencies
implementation project(':auth')
kapt "com.github.stephanenicolas.toothpick:toothpick-compiler:$versions.toothpik"
But after clean/rebuild I have build exceptions
error: cannot find symbol addChildRegistry(new ru.rm.auth.FactoryRegistry());
and
error: cannot find symbol addChildRegistry(new ru.skblab.rm.auth.MemberInjectorRegistry());
I try it with android gradle plugin version 3.1.2 and 3.2.0-alpha15 and gradle version 4.4.1 and 4.7 respectively
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Dagger 2 component not generated - Stack Overflow
I have a Component class where I inject objects and a ModuleClass where I provide objects to inject. What can be the cause...
Read more >Create an Android library - Android Developers
An Android library is structurally the same as an Android app module. It can include everything needed to build an app, including source...
Read more >View Binding classes are not resolved in Studio 4.0+ when ...
When two independent modules in a project have the same application ID and a layout of the same name, the generated View Binding...
Read more >Stop generating the BuildConfig on your Android modules
It's important to highlight that I am not talking about the app module BuildConfig , I am talking about all the other BuildConfig...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
try to add injection for some field, for example, in fragment or activity in module
You re right, this sentence doesn’t make sense. We should fix it,please don’t close the ticket to remind us.
All libs using TP will have to be compiled using the TP annotation processors, refection or not.
If you use registries, all libs will have to include a registry (in its own distinct package).
If you don’t, we still the libs to be annotation processed to generate the factories and member injectors.
So, yes, you need TP to compile all lib modules. They can use the TP libs as implementation scope and then you will have to use TP libs in your app. You can also include it in the api scope for libs and your app won’t need to declare it as a dependency.
If you use registries, they should be declared as API. But it’s a detail.
Thx for raising the issue.
On Sat, Jun 16, 2018, 05:35 SergJ4, notifications@github.com wrote: