Today just hollow read about androidannotations this thing, this thing found also is derived from other three-party framework, specific is what frame has not remember, in short, this thing let me very is lingering, although at that time saw this thing very surprised, It is also anxious to quickly get in and see what's going on.
is also because of the work reason, to tell the truth I also is a dedicated small angry green, suffer not the pattern, and then has been delayed to today.
Here is the reason why I write this blog today, I am very angry and angry here, this thing Chinese version of very few people write, write the basic can not see, followed by a blog by n Many people copy, I also hehe.
So let's start with today's topic configuration.
The first is the project build gradle file configuration see:
Here are some of the blue part of the point ha, here is the key name of this configuration.
Buildscript { repositories { mavencentral ()///---Be careful here, not jcenter () } dependencies { ' com.android.tools.build:gradle:2.2.0 ' // Note:do not place your application dependencies here; they belong // In the individual module build.gradle files Classpath ' com.neenbedankt.gradle.plugins:android-apt:1.8 '} }
Next is the configuration of build Gradle in module:
The above is about the configuration of its androidannotions in Gradle
Apply plugin: ' Com.android.application 'Apply plugin:' Com.neenbedankt.android-apt 'Android {compilesdkversion24buildtoolsversion"24.0.3"Defaultconfig {ApplicationID"Com.helloworld"minsdkversion15targetsdkversion21stVersioncode1Versionname"1.0"Testinstrumentationrunner"Android.support.test.runner.AndroidJUnitRunner"} buildtypes {release {minifyenabledfalseproguardfiles Getdefaultproguardfile (' Proguard-android.txt '), ' Proguard-rules.pro '}}}def aaversion= ' 4.1.0 '//your desired version, for example the latest stable:4.1.0Dependencies {Compile Filetree (dir:' Libs ', include: [' *.jar ']) Androidtestcompile (' com.android.support.test.espresso:espresso-core:2.2.2 ', {Exclude group:' Com.android.support ', module: ' Support-annotations '}) Compile' com.android.support:appcompat-v7:24.1.0 'Testcompile' junit:junit:4.12 'Apt"Org.androidannotations:androidannotations: $AAVersion"Compile"Org.androidannotations:androidannotations-api: $AAVersion"}
Android Studio configuration in Androidannotations