Android Studio 配置 androidAnnotations框架详细步骤
2016-08-11 16:37
531 查看
http://www.cnblogs.com/caobotao/p/5138935.html
第一步:打开app的build.gradle文件
第二步:添加下面红色的部分
第三步:AndroidManifest.xml中每个使用androidAnnotations的Activity名字都要添加_
第四步:修改完之后重新build一下项目即可
第一步:打开app的build.gradle文件
第二步:添加下面红色的部分
apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.cbt.learnandroidannotations" minSdkVersion 14 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.github.rey5137:material:1.1.0' compile 'de.greenrobot:eventbus:2.4.0' compile 'net.steamcrafted:load-toast:1.0.6' } buildscript { repositories { mavenCentral() } dependencies { // replace with the current version of the Android plugin classpath 'com.android.tools.build:gradle:1.1.0' // the latest version of the android-apt plugin classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4' } } repositories { mavenCentral() mavenLocal() } apply plugin: 'android-apt' def AAVersion = '3.3.1' dependencies { apt "org.androidannotations:androidannotations:$AAVersion" compile "org.androidannotations:androidannotations-api:$AAVersion" } apt { arguments { androidManifestFile variant.outputs[0].processResources.manifestFile } }
第三步:AndroidManifest.xml中每个使用androidAnnotations的Activity名字都要添加_
<activity android:name=".MainActivity_"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <activity android:name=".LoginActivity_"/>
第四步:修改完之后重新build一下项目即可
相关文章推荐
- Android Studio 配置 androidAnnotations框架详细步骤
- Android Studio 配置 androidAnnotations框架详细步骤
- android studio 配置androidannotations注入框架
- Android annotations快速开发框架使用,Android Studio与Eclipse配置
- Android框架 androidannotations 的配置 android studio 配置
- Android Studio 1.1.0 配置androidannotations框架
- Android Studio 配置使用注解框架AndroidAnnotations
- Android Studio配置AndroidAnnotations
- Android Studio 配置 AndroidAnnotations
- android 框架androidannotations在Eclipse中的配置
- Android Studio中配置 Android annotations
- Xcode 6.2 导入最新XMPP框架详细步骤 与 在Xcode6.2中配置pch文件
- Android Eclipse下工程移植到Android Studio详细步骤
- 关于PHP-Zend framework2 框架 学习过程。 阅前须知: ZF2中的配置文件是可以静态文件配置来注册和通过相关函数动态注册。 1.EventManager(事件驱动),关于事件驱动,在ZF2相关资料没有详细说明,可以参考ANDROID的事件驱动,MFC的消息响应/事件驱动。
- android 框架androidannotations在Eclipse中的配置
- Android Studio 使用笔记:记录使用Gradle配置AndroidAnnotations
- Android-Universal-Image-Loader 图片异步加载类库的使用(超详细配置)提供Android studio 的DEMO
- SSH三大框架整合配置详细步骤(1)
- SSH三大框架整合配置详细步骤(1)
- SSH三大框架整合配置详细步骤(2)