Using AndroidAnnotations with Scala and Gradle

Can AndroidAnnotations be used with Scala programming language and Gradle build system? When I try to integrate AndroidAnnotations into my existing Android / Scala / Gradle project, compilation fails because I could not find the created underscore classes (for example, MyActivity_).

Here are some useful starting points and links:

+7
source share
2 answers

During my searches, to solve this problem, I added some research links to my original question. The AndroidAnnotations annotation processor generates source code (Java files). The annotation processors in general seem to work at the source code level (and not in class files). I expect AndroidAnnotations to generate Java code from Scala source files. Scala does not seem to support the Java annotation processing tool. So my answer to this question would be this: using AndroidAnnotations with Scala source code is not possible. However, AndroidAnnotations can still be used in Java source code in a mixed-source Scala project.

+6
source

As for Gradle (without Scala), it seems that someone managed to use it with AndroidAnnotations, here: Adapt AndroidAnnotations Maven settings for Gradle

+1
source

All Articles