Android Studio 配置 androidannotations


下载

http://androidannotations.org/

配置方法 一

https://github.com/excilys/androidannotations/wiki/IntelliJIDEA
但是
File -> Settings -> Build, Execution, Deployment -> Compiler -> Annotation processing
找不到啊?哪里去了!

Android Studio 配置 androidannotations_第1张图片

在Android Studio里启用Annotation processors(这个是针对AS的,配置一次就行,下次再建新工程就不需要了)到达路径:File->Other Settins->Default Settings(Mac 上)

在这里看到的
http://www.08kan.com/gwk/MzA5ODAyNzM4Ng/201495771/2/77f724b83bb82a00447ea9424e72ad65.html

配置方法 二

Android Studio 配置 androidannotations_第2张图片

配置Gradle
几乎不用配置的Gradle
自定义一些事情

先看看目前Android-Apt的版本

Android Studio 配置 androidannotations_第3张图片

再来看一下AAVersion

Android Studio 配置 androidannotations_第4张图片

学习使用

API-List

https://github.com/excilys/androidannotations/wiki/AvailableAnnotations

Cookbook

https://github.com/excilys/androidannotations/wiki/Cookbook

Android Studio 几乎就是免 Git 使用啊!

调试

发生了什么!怎么什么都打印?

Android Studio 配置 androidannotations_第5张图片

为啥?过滤一点都不自动啊….

使能ADB Integration
Android Studio 配置 androidannotations_第6张图片

呆一会就好了,喝杯茶。嘿嘿….

AndroidAnnotations 测试

更多相关文章

  1. android 判断当前线程是不是主线程的几种方法
  2. Android sqlite数据库存取图片信息
  3. Android httpClient Get&Post方法
  4. Android图片缩放、圆角处理以及倒影特效代码
  5. Android 给textview添加下划线的一种方法(可复用)
  6. Android中两种实现倒计时的方法
  7. Android获取系统内核版本的方法
  8. Android Studio执行Java类的main方法及解决方法

随机推荐

  1. Android(安卓)手机号码格式验证
  2. Android(安卓)百度 Map----定位功能
  3. Android手势操作(一)
  4. Leetcode: Android(安卓)Unlock Patterns
  5. java.lang.ClassNotFoundException:
  6. Android(安卓)EditText简单实现右侧点击
  7. 使用manifestPlaceholders
  8. 监听BatteryManager.EXTRA_PLUGGED无效的
  9. 编译android平台上的webrtc-chromium
  10. Android(安卓)实现卫星菜单(精简版)