Android Android with Android Studio

I am trying to get Android annotations working on Android Studio v0.8.14 along with Android Annotations 3.1. But for some reason, it does not generate the required files. Can someone point me to the correct documentation or the steps that I need to create a project.

I looked around, nothing seems solid.

0
source share
1 answer

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.

+1
source

Source: https://habr.com/ru/post/1273998/


All Articles