Create root and app build.gradle as:
https://gist.github.com/Pierry/b3eab411c8865573b985
In action, annotate this with @EActivity(R.layout.activity_my) and add the library to your classpath (do Android studio automatically), (right click).
Add _ to your manifest after the activity name.
Note: when u changes everything in buidle.gradle, usually the line is deleted:
compile "org.androidannotations:androidannotations-api:$AAVersion"
You need to add it again. Always check.
source share