Android开发框架androidannotations的使用

Android开发框架AndroidAnnotations,它除了有依赖注入的特性以外,还集成了Ormlite,Spring-android中的REST模板。使用起来非常方便,大大提高了开发效率。

 使用步骤

1.下载 http://androidannotations.org/

2.建一个android项目,将androidannotations-api-3.0.1.jar复制到libs目录下,

在根目录建一个文件夹compile-libs,将androidannotations-3.0.1.jar复制进去

3.设置属性:右键->Properties->Java Compiler->Annotation Processing ,选中Enable project specific settings。

在Annotation Processing的子项Factory Path页面,选中Enable project specific settings,

然后添加编译需要的jar包。点“Add JARs”将之前complie-libs目录下的androidannotations-3.0.1.jar导入,保存。

具体使用可参考http://androidannotations.org/ 有说明文档以及Sample使用等。

参考http://blog.csdn.net/nupt123456789/article/details/23790161

原文地址:https://www.cnblogs.com/linlf03/p/4601825.html