android - The import butterknife.InjectView cannot be resolved -


i trying use this library project, tried run sample application (in /app/source/main/ in github link), , in mainactivity.java, getting error on import

import butterknife.injectview; 

and in mainactivity.java , verticallinearrecyclerviewsample.java, @ every occurance of @injectview(...) annotation, following error:

injectview cannot resolved type 

so should this?


what tried:

i have seen this question. didn't work me, left comment there.

i have followed these steps include butter knife library till step#3. step#4, "make sure .apt_generated/ folder in project root..." - project not have folder named .apt-generated or in project root folder.


note: use eclipse, , project on github android studio, created new project in eclipse , copied individual files downloaded android studio project. hope not made difference.

credit @sharj answering first.

the butterknife 7.0.0 release included breaking change of renaming of annotation verbs. highlighted in changelog , reflected in website.

version 7.0.0 *(2015-06-27)* ----------------------------   * `@bind` replaces `@injectview` , `@injectviews`.  * `butterknife.bind` , `butterknife.unbind` replaces `butterknife.inject`      , `butterknife.reset`, respectively. ... 

https://github.com/jakewharton/butterknife/blob/f65dc849d80f6761d1b4a475626c568b2de883d9/changelog.md


Comments