使用Butter Knife

 
jar包 http://note.youdao.com/yws/public/redirect/share?id=bcb743ffc0a3bb6a6b4443c5da06f9f4&type=false
 
按照要求在eclipse上使用时候出现nullpointerexception 异常
然后找到原因是没有设置注解处理
然后参考http://blog.csdn.net/u013771273/article/details/47127063博客程序成功运行。

 


右键工程,打开preference里找到Java Compiler,选中Annotation Processing------->勾选enable project specific settings

 

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

 

posted on 2016-07-12 15:04  Just_Boy  阅读(92)  评论(0)    收藏  举报