You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Anvil 2.5.0 with Dagger version 2.52 I have no issues. But updating Dagger to 2.53 (and doing no other changes to the project) gives issues when @LazyClassKey is used:
/something/build/generated/source/kapt/debugAndroidTest/something/DaggerSomethingComponent.java:41: error: cannot find symbol
import something.SomethingElse_Module_ProvideType_LazyMapKey;
^
symbol: class SomethingElse_Module_ProvideType_LazyMapKey
The SomethingElse_Module is generated by my own code generator via Anvil.
Just noting here that Anvil is probably missing generation of the new class for LazyClassKey:
This looks like an Anvil issue.
Anvil uses its own Kotlin plugin to generate factory classes for modules -- i.e. it attempts to replace Dagger's annotation processor and handle code generation itself. In Dagger 2.53 there's an additional generated class for LazyClassKey in modules, so I suspect the issue is that Anvil doesn't yet generate this class.
Using Anvil
2.5.0
with Dagger version2.52
I have no issues. But updating Dagger to2.53
(and doing no other changes to the project) gives issues when@LazyClassKey
is used:The
SomethingElse_Module
is generated by my own code generator via Anvil.Note that I had to rename/hide some sensitive details here. Hopefully it still makes sense.
I can work on a reproducer, if required. Didn't dig down into it just yet and wanted to open the issue in the meantime.
The text was updated successfully, but these errors were encountered: