Android 最火的快速开发框架androidannotations配置详解
来源:互联网 发布:量化交易算人工智能吗 编辑:程序博客网 时间:2024/05/15 06:30
以前给大家介绍的xUtils是国内比较火的快速开发框架,但是它的注解机制不是太稳定而且注解可选也比较少,今天给大家介绍一个国外的一个框架主要专注于注解的开发,简化Android代码编写,因为配置注意事项较为复杂,所以先详细介绍一下配置:
Git官网:https://github.com/excilys/androidannotations
下载完解压目录如上,AndroidAnnotations是源码工程,example是例子工程,
打开\examples\HelloWorldEclipse,如下:
复制 compile-libs文件夹到自己的工程根目录,打开libs文件夹 复制androidannotations-api-3.0.1.jar
到自己工程的libs文件夹下。如下:
选中自己工程 project->properties->Java build path->libraries->add jars把androidannotations-api-3.0.1.jar添加进来
如下:
打开 Java compiler,选中enable project specific settings 设置compiler compliance level 1.6以上,如下:
接着选中annotation processing选中enable annotation processing,如下:
接着展开annotation processing选中factory path->add jars 把compile-libs下的androidannotation-xxx.jar添加进来。如下:
androidannotation-xxx.jar是工程编译文件,androidannotations-api-3.0.1.jar是api调用文件。
注意事项:
若需要混淆打包请在proguard-project.txt添加:-dontwarn org.springframework.**
转自:http://blog.csdn.net/rain_butterfly/article/details/38731807点击打开链接
- Android 最火的快速开发框架androidannotations配置详解
- Android 最火的快速开发框架androidannotations配置详解
- Android 最火的快速开发框架androidannotations配置详解
- Android 最火的快速开发框架androidannotations配置详解
- Android 最火的快速开发框架androidannotations配置详解
- Android 最火的快速开发框架androidannotations配置详解
- Android 最火的快速开发框架androidannotations配置详解
- Android 最火的快速开发框架AndroidAnnotations使用详解
- Android 最火的快速开发框架AndroidAnnotations使用详解
- Android 最火的快速开发框架AndroidAnnotations使用详解
- Android最火的快速开发框架AndroidAnnotations使用详解
- Android 最火的快速开发框架AndroidAnnotations使用详解
- Android 最火的快速开发框架AndroidAnnotations使用详解
- Android 最火的快速开发框架AndroidAnnotations使用详解
- Android 最火的快速开发框架AndroidAnnotations使用详解
- Android 最火的快速开发框架AndroidAnnotations使用详解
- Android 最火的快速开发框架AndroidAnnotations使用详解
- eclipse 下 Android 最火的快速开发框架androidannotations配置详解
- 【Lucas】【数论】 17.6.2 组合数取模 题解
- bzoj 3944 Sum
- 2017计蒜之道初赛第四场AB两题题解
- Apparently wrong driver class specified for URL: class: com.mysql.jdbc.Driver
- Concert Hall Scheduling UVALive
- Android 最火的快速开发框架androidannotations配置详解
- 关键路径问题(括扑排序扩展)
- Lintcode——链表插入排序
- leetcode hard模式专杀之10Regular Expression Matching
- 【欧拉函数】【数论】17.6.2 数学题 题解
- 设计模式(11)-Composite 组合模式
- oracle procedure 心得
- PostgreSQL on Azure 初始使用
- 【Uinity】关于鼠标指针的管理(以单例模式实现)