Android ADT 找不到Annotation Processing选项,解决方法。

使用Butterknife框架时,遇到java.lang.ClassNotFoundException,注解没有反应,发现是因为没有配置插入式注解使用的Jar包。
按照教程配置发现,在JavaCompiler下根本找不到 Annotation Processing 选项。

这里写图片描述
Android点滴-ADT 23.0.2找不到Annotation Processing选项,然后发现是缺少了 Eclipse的 JDT 插件(Java development tools),安装上这个插件就OK了!
安装步骤:
1. Help –> Install New Software…
2. 按照下图,在 Work with 中选择Juno - http://download.eclipse.org/releases/juno
3. 在下面的 Name 中选择 Programming Languages 下的 Eclipse Java Development Tools package
4.然后next –> finish 安装,完成之后,就可以配置了。

Butterknife官网
http://jakewharton.github.io/butterknife/
Butterknife配置说明
http://jakewharton.github.io/butterknife/ide-eclipse.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章