androidanotation , 。 , 。
1、 , sdk
2、 JDK jdk
3、
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_6
};
4、
5、
, androidannotation 。 , , build.gradle(moudel:app)
apt {
arguments {
androidManifestFile variant.outputs[].proce***esources.manifestFile
}
}
apply plugin: apply plugin: def AAVersion = android {
compileSdkVersion buildToolsVersion defaultConfig {
applicationId minSdkVersion targetSdkVersion versionCode versionName testInstrumentationRunner }
buildTypes {
release {
minifyEnabled proguardFiles getDefaultProguardFile()}
}
allprojects {
repositories {
maven { url }
}
}
}
apt {
arguments {
androidManifestFile variant.outputs[].proce***esources.manifestFile
}
}
, 。