I got this warning in my project. I'm learning to use IntelliJ IDEA as my IDE.
Here's the code with warnings:
@InjectView(R.id.button)
private Button loginBtn;
The full messages are as follows:
Binding annotation
@InjectView(R.id.button)
without@Inject
declared less... (Ctrl+F1)This inspection reports binding annotations on fields or parameters without a matching @Inject annotation.
Such annotations will be ignored by Guice. Powered by GuiceyIDEA
I can't understand what it want me to do.
I add a @Inject
annotation on the field and the warning did disappear, but the app doesn't work.
So how should I do to fix the warning?
Thanks.