我正在使用AndroidAnnotaion,但由于 Android Studio 2.3 和 Gradle 2.3.0,他们说android-apt已经过时了。而且annotationProcessor是新的。所以,我想知道如何annotationProcessor像apt以前一样进行配置。
如果我误解了什么,请帮忙。
那么,之前...
apply plugin: 'android-apt'
dependencies {
def AAVersion = '4.2.0'
apt "org.androidannotations:androidannotations:$AAVersion"
compile "org.androidannotations:androidannotations-api:$AAVersion"
}
apt {
arguments {
library 'true'
}
}
现在...
dependencies {
def AAVersion = '4.2.0'
annotationProcessor "org.androidannotations:androidannotations:$AAVersion"
compile "org.androidannotations:androidannotations-api:$AAVersion"
}