Follow this Steps [ into Eclipse IDE ]:
1)Right click on your project withIn Package Explorer. Got to Java Compiler
--> Annotation Processing
and check the Enable project specific settings
.
2)Expand the Annotation Processing
section and select Factory Path
. Check Enable project specific settings
and then click Add JARs
Navigate to the project's libs/ folder and select the ButterKnife
jar.
3)Click Ok
to save the new settings. Eclipse
will ask you to rebuild your project to which you should click Yes
.
Note: Make sure that the .apt_generated/
folder is in your project root. It should contain files like YOURACTIVITY$$ViewInjector.java
. If these files are not present trigger a clean build by selected Project → Clean. This folder and files should not be checked into revision control.
Reference -> Set up manual configuration for ButterKnife annotations
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…