Android Annotations在studio上的配置
2016-12-14 13:32
246 查看
第一步
添加代码
添加代码
注意resourcePackageName后面添加的是你的包名。
第二步
添加代码
最后一步打开项目的AndroidManifest在MainActivity后面加“_”
添加代码
apply plugin: 'android-apt' def AAVersion = '3.3.2'
添加代码
apt "org.androidannotations:androidannotations:$AAVersion" compile "org.androidannotations:androidannotations-api:$AAVersion"
apt { arguments { androidManifestFile variant.outputs[0].processResources.manifestFile resourcePackageName 'com.example.youfang.myapplication' } }
注意resourcePackageName后面添加的是你的包名。
第二步
添加代码
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
最后一步打开项目的AndroidManifest在MainActivity后面加“_”
相关文章推荐
- Android Studio + gradle + Androidannotations 配置记录
- Android Studio 配置使用注解框架AndroidAnnotations
- Android Studio 1.5 配置AndroidAnnotations
- Android开发之深入理解Android Studio构建文件build.gradle配置
- AndroidAnnotations在Android Studio中的配置
- android studio 配置android annotations
- android studio ndk配置
- Android studio ndk环境配置
- Android Studio安装、配置
- 安卓实战开发之JNI入门及高效的配置(android studio一键生成.h,so及方法签名)
- AndroidStudio SVN插件配置与使用 标签: svn 2016-07-13
- 关于android studio中androidannotations的配置
- JNI学习一(AndroidStudio NDK环境配置)
- Android Studio 配置 AndroidAnnotations
- Android Studio之gradle的配置与介绍
- Android Studio Gradle Scripts配置说明
- Android Studio2.2.2下安装配置Kotlin教程
- Android Studio注释摸版配置
- angularjs+ionic+cordova+Android studio的环境配置
- android studio 配置androidannotations注入框架