Android annotation官网:https://github.com/excilys/androidannotations
Android annotation官网中有提到在Gradle中要怎么配置:
https://github.com/excilys/androidannotations/wiki/Building-Project-Gradle
我也是参考上面的配置的.我的配置如下,要配置的地方有两处:
1> Project 的 build.gradle :
关键是: classpath ‘com.neenbedankt.gradle.plugins:android-apt:1.4+’
2> Module的 build.gradle :
最后sync project即可