I am trying to use this library project, so I tried to run the sample application (in /app/source/main/
in the Github link), and in MainActivity.java
, I am getting the error on the import
import butterknife.InjectView;
and also in MainActivity.java
and VerticalLinearRecyclerViewSample.java
, at every occurance of @InjectView(...)
annotation, I get the following error:
InjectView cannot be resolved to a type
So what should I do about this?
WHAT I TRIED:
I have seen this question. Didn't work for me, left a comment there.
I have followed these steps to include the Butter Knife library till Step#3. About Step#4, "Make sure that the .apt_generated/ folder is in your project root..." - this project does not have any folder named .apt-generated
or something in the project root folder.
Note: I actually use Eclipse, and the project on Github is for Android Studio, so I created a new project in eclipse and copied individual files from the downloaded Android Studio project. I hope this does not made a difference.
@Bind
works, thank you so very much. If you can post it as an answer, I can accept it. – Moderator