奶油刀不创建.apt_generated目录什么 [英] Butterknife does not create anything in .apt_generated directory

查看:2019
本文介绍了奶油刀不创建.apt_generated目录什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用奶油刀注射,但我没有看到在 .apt_generated 目录中生成的类。

I am trying to use Butterknife for injection, but I do not see any classes generated in the .apt_generated directory.

我使用的蚀开普勒(服务版本2),启用注释处理在我的项目属性,定义在奶油刀-5.0.0.jar 作为注解处理器工厂路径。

I am using eclipse Kepler (service release 2), enabled annotation processing in my project properties and defined the butterknife-5.0.0.jar as the annotation processor in the factory path.

我有注入片段进行检测2次,当我清理它是建立在项目,但会产生什么。检查日志文件和的error_log认为我没有看到相关的东西..

I have 2 views injected into a fragment for testing, and when I clean the project it is built but nothing is generated. Checking the log file and the error_log view I don't see anything related..

任何想法?

推荐答案

我建议检查是否编译并运行你的应用程序。

I suggest to check if you compile and run your app.

或者,你的codeS的其他部分可能有一些错误,并且IDE无法建立。例如R.java丢失等。

Or, other parts of your codes may have some errors and the IDE isn't able to build. e.g R.java is missing etc.

这篇关于奶油刀不创建.apt_generated目录什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆