Eclipse Configuration ButterKnife

来源:互联网 发布:深圳华夏软件入学条件 编辑:程序博客网 时间:2024/05/21 17:38
  1. Right click on your project in the Package Explorer, go to Properties, head to Java Compiler → Annotation Processing and check "Enable project specific settings".

    Ensure the other annotation processing settings are the same as shown below:

  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 Butter Knife jar.

  3. Click "Ok" to save the new settings. Eclipse will ask you to rebuild your project to which you should click "Yes"
  4. Make sure that the .apt_generated/ folder is in your project root. It should contain files likeYOURACTIVITY$$ViewBinder.java. If these files are not present trigger a clean build by selectedProject → Clean. This folder and files should not be checked into revision control.
  5. Lastly, under "Java Compiler", make sure that the Compiler compliance level is set to Java version 1.6 at minimum
http://jakewharton.github.io/butterknife/ide-eclipse.html

Annotation Processing not found

Programming Languages > Eclipse Java Development Tools

enter image description here


0 0
原创粉丝点击