-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@BindValueIntoMap fields must have exactly one @MapKey. Found [] #2710
Comments
Just to make sure I'm understanding, when you get that error you must also get some error from the compiler saying that the I assume this issue is less about the error message and more about a request to add the target to those dagger annotations. Is that correct? |
Yes, the error for adding a provided map key to a property is:
In my case I was using I raised the issue here as the error itself could not be resolved. Adding the target might be the simples solution, but not the only one. In general I would like to request a working example (for Kotlin) or test case to use |
This error is triggered by
BindValueMetadata
:So in general this feature might be working with custom keys, but not with with any of the provided
@MapKey
defining@Target(METHOD)
to only allow to annotate methods@ClassKey
@IntKey
@LongKey
@StringKey
The text was updated successfully, but these errors were encountered: