Android 最火的快速开发框架androidannotations配置详解
2014-08-28 09:10
435 查看
转自:http://blog.csdn.net/rain_butterfly/article/details/38731807
以前给大家介绍的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.**
如有问题请留言,转载注明出处。
以前给大家介绍的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.**
如有问题请留言,转载注明出处。
相关文章推荐
- Android 最火的快速开发框架androidannotations配置详解
- Android 最火的快速开发框架androidannotations配置详解
- Android 最火的快速开发框架androidannotations配置详解
- Android 最火的快速开发框架androidannotations配置详解
- Android 最火快速开发框架Android Annotations配置详解
- Android 快速开发框架AndroidAnnotations使用详解
- Android 最火的快速开发框架AndroidAnnotations使用详解
- Android 最火的快速开发框架AndroidAnnotations使用详解
- Android annotations快速开发框架使用,Android Studio与Eclipse配置
- Android 最火快速开发框架AndroidAnnotations使用详解
- Android 最火的快速开发框架AndroidAnnotations使用详解
- 最火的UI快速开发框架androidannotations
- AndroidAnnotations开发框架使用详解
- android快速开发框架xutils详解
- AndroidAnnotations开发框架使用详解
- Android项目快速开发框架AndBase详解
- AndroidAnnotations(Code Diet)android快速开发框架
- 快速开发框架androidannotations
- AndroidAnnotations(Code Diet)android快速开发框架
- Android Annotations快速开发框架入门