使用Butter Knife
jar包 http://note.youdao.com/yws/public/redirect/share?id=bcb743ffc0a3bb6a6b4443c5da06f9f4&type=false
按照要求在eclipse上使用时候出现nullpointerexception 异常
然后找到原因是没有设置注解处理
右键工程,打开preference里找到Java Compiler,选中Annotation Processing------->勾选enable project specific settings

5.展开Annotation Processing------>选中Factory Path ---->勾选enable project specific settings------>add JARs------>选中你的butterknife.jar

浙公网安备 33010602011771号