Android Annotations with android studio

前端 未结 1 1969
野的像风
野的像风 2021-01-28 08:57

I\'ve been trying to get Android Annotations working on Android Studio v0.8.14 along with Android Annotations 3.1. But for some reason it\'s not generating the required files. C

相关标签:
1条回答
  • 2021-01-28 09:44

    Create root and app build.gradle like:

    https://gist.github.com/Pierry/b3eab411c8865573b985

    In activity, annotate this with @EActivity(R.layout.activity_my), and add library in your classpath (Android studio make automatically), (Right click).

    Add in your manifest _ after activity name.

    Note: when u change everything in buidle.gradle, usually the line is removed:

    compile "org.androidannotations:androidannotations-api:$AAVersion"
    

    You need add it again. Verify always.

    0 讨论(0)
提交回复
热议问题