您的位置:首页 > 移动开发 > Android开发

android studio 导入 annotations 注解框架

2016-06-16 15:54 483 查看
1.project 下的build.grade 添加:

// annotations
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'

2.app下的build.grade 添加:

apply plugin: 'com.neenbedankt.android-apt'
def AAVersion = '4.0.0'


3.dependencies 里添加:

// 注释框架
apt "org.androidannotations:androidannotations:$AAVersion"
compile "org.androidannotations:androidannotations-api:$AAVersion"
apt "org.androidannotations:roboguice:$AAVersion"
compile "org.androidannotations:roboguice-api:$AAVersion"
compile 'org.roboguice:roboguice:3.0.1'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: