Questions tagged [android-annotations]

AndroidAnnotations is a compile time framework that helps writing simple and clean Android code that is easy to maintain.

AndroidAnnotations is a compile time framework that helps writing simple and clean Android code.

  • This tag should contain questions related to the AndroidAnnotations framework
  • This tag should not contain general java annotation related questions, or annotation processing questions
  • This tag should not contain questions related to the Android Support Annotations library

Please start by reading the wiki and the mailing list

496 questions
12
votes
5 answers

Android Eclipse - Cannot see annotation processing option

I am unable to fine the option to set annotation processing in my Eclipse preferences. Not sure since when am I getting this problem but surely it has started to occur after I updated eclipse last. I also tried pasting the annotations.jar file in…
sb_269
  • 553
  • 2
  • 7
  • 22
11
votes
0 answers

Is there an annotation that denotes a max Android API version?

The annotation @RequiresApi is helpful for requiring that the annotated element is only called on the given API level or higher. However, there does not appear to be a corresponding annotation for requiring that the annotated element is only called…
11
votes
3 answers

Android Annotations / Gradle / Android Studio build issues

I'm working on migrating a project to Android Studio/Gradle and I'm having some problems getting the project to build properly with Android Annotations. From the gradle console output it looks like the annotation processing is happening after…
Marky
  • 1,294
  • 1
  • 18
  • 40
10
votes
2 answers

Android Annotations framework doesn't seem to generate anything

I'm trying to use Android annotations framework because it seems quite powerful. I'm quite stuck to configuring my first project based on it. I followed every step of the wiki but it doesn't generate any file after a build. So when I ask for a…
10
votes
2 answers

How to apply @IntRange() support annotation to Kotlin property setter

I have been trying to find out how to apply @IntRange(from = 1) to my Kotlin property. After several failed attempts I finally just created the class I wanted in Java and converted it to Kotlin inside Android Studio. Here is my Java class: import…
Adam
  • 2,167
  • 5
  • 19
  • 33
10
votes
4 answers

Color preview in Android Studio

Is there a way to see the color preview of integer variables that defined as ARGB color in the left gutter of the Editor Window.I mean something like the colors preview that registered as resource. Here's a photoshopped screenshot which shows…
ucMedia
  • 4,105
  • 4
  • 38
  • 46
10
votes
1 answer

Android Annotation Error with Android Studio Update 1.0

I am working with Android Annotations and today I did the new update for Android Studio 1.0. When I build the project it gave me this error: Error:(40, 0) Could not find property 'processResources' on…
Ultimo_m
  • 4,724
  • 4
  • 38
  • 60
10
votes
1 answer

Cannot build Android project with Gradle (using Android Annotations)

I'm trying to use gradle to build my Android project wit Android Annotations but I still get errors. In my java classes AA is not found. Also in gradle file I get some hints: versionName "1.0" <- 'versionName' cannot be applied to…
MAGx2
  • 3,149
  • 7
  • 33
  • 63
10
votes
6 answers

AndroidAnnotations Nothing Generated, Empty Activity

I am trying to create a project using AndroidAnnotations in Android Studio. When I build and run the project, everything seems to compile fine, yet I get nothing but a blank activity for the app. In addition, it does not appear that anything is…
NSchock
  • 253
  • 1
  • 7
  • 17
9
votes
2 answers

AndroidAnnotations and Dagger

I'm trying to use Dagger to inject into an android Annotated Activity. java.lang.IllegalArgumentException: No inject registered for members/com.app.server.AddServerActivity_. You must explicitly add it to the 'injects' option in one of your…
kay.one
  • 7,622
  • 6
  • 55
  • 74
8
votes
1 answer

annotationprocessor and apt configure equivalent

I'm using AndroidAnnotaion, but due to Android Studio 2.3 and Gradle 2.3.0, they said android-apt was obsoleted. And annotationProcessor is a new one. so, I want to know how can I configure annotationProcessor like I do with apt before. If I…
8
votes
2 answers

Android annotations and applicationIdSuffix

I'd been trying out Android annotations recently and everything had been working well until I decided to add applicationIdSuffix in buildTypes in my build.gradle file. Currently it looks like this: buildTypes { debug { …
Mikhail
  • 3,666
  • 4
  • 30
  • 43
8
votes
1 answer

Calling an Activity with FLAG_ACTIVITY_REORDER_TO_FRONT from a Service

I am trying to call an activity (activity A) from a service and what I want to happen is to check if there's already an instance of A on the stack, and if there is, to bring that to the top of the stack (and trigger onNewIntent() method), instead of…
8
votes
3 answers

AndroidAnnotations cannot find symbol class

I'm using AndroidAnnotations in an Android Studio gradle project. I currently get error output from AA during compilation that says: cannot find symbol class MyActivity_ The error output does not prevent building the application - its not really a…
8
votes
1 answer

Transfuse vs AndroidAnnotations

I'd like to know if there's anyone using Transfuse and how it differs from Android Annotations. I mean the pros and cons of each one, and if there are other options besides these two. Thanks.
Androiderson
  • 16,865
  • 6
  • 62
  • 72
1
2
3
33 34