java注释处理器不会自动触发吗?
我正在尝试用安卓做注释处理
我的处理器:-
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.CLASS)
public @interface FirstAnotation {
int rollno();
}
我的示例模型类:-
@FirstAnotation(rollno = 20120)
public class Model {
String name;
}
每次在模型类中更改rollno时,我都必须再次重新构建项目,以反映生成的类中的更改。
为什么会发生这种情况
如果我们不得不一次又一次地重建项目,butterknife是如何工作的
共 (0) 个答案