Android Annotations框架第1篇-环境搭建

Android Annotations是什么?


AndroidAnnotations is an Open Source framework that speeds up Android development. It takes care of the plumbing, and lets you concentrate on what’s really important. By simplifying your code, it facilitates its maintenance.

Android Annotations 是一个开源的框架,用于加速 Android 应用的开发,可以让你把重点放在功能的实现上,简化了代码,提升了可维护性

Android Annotations开源项目


  1. 官网:http://androidannotations.org/

  2. github:https://github.com/excilys/androidannotations

  3. github获取代码:

git clone https://github.com/excilys/androidannotations.git

Android Annotations环境配置

  1. 配置环境:eclipse

  2. 如果是直接导入官方提供的androidannotations/examples/HelloWorldEclipse的列子,则只需要设置source directory就可以了

  3. 导入example的设置步骤:

    鼠标右击项目,选择Properties(快捷键Alt+Enter),进入设置界面,设置如下选项就可以了这里写图片描述

  4. 新建项目配置

    • 第1步:导入下载的annotations jar包

      这里写图片描述

    • 第2步:在project中clean一下项目,就不会报错了,annotations就会生成代码,生成的代码就是多了一个下划线”_”

      这里写图片描述

    • 第3步:鼠标右击项目,选择Properties(快捷键Alt+Enter),进入设置界面,导入compile-libs和source目录

      这里写图片描述

    • 这里写图片描述

到这里项目环境已经完全配置完成了,下一步就可以学习代码了!!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值