Using AndroidAnnotations with Scala and Gradle
Asked Answered
C

2

7

Is it possible to use AndroidAnnotations with the Scala programming language and the Gradle build system? When I try to integrate AndroidAnnotations into my existing Android/Scala/Gradle project, then compilation fails because the generated underscore classes (e.g. MyActivity_) cannot be found.

Here are some useful starting points and references:

Chopine answered 17/9, 2011 at 10:15 Comment(0)
C
6

During my quest to solve this problem, I added some research links to my original question post. The AndroidAnnotations annotation processor generates source code (Java files). Annotation processors in general seem to operate at the source code level (and not class files). I am expecting AndroidAnnotations to generate Java code from Scala source files. Scala doesn't seem to support the Java annotation processing tool. So my answer to this question would be: it is not possible to use AndroidAnnotations with Scala source code. However, AndroidAnnotations may still be used in the Java source code in a Scala mixed-source project.

Chopine answered 17/9, 2011 at 22:36 Comment(0)
P
1

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

Pax answered 2/12, 2011 at 18:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.