Androidannotations + Android Studio (almost works)

This is what I am trying to understand. How to make both versions without using Gradle or Maven to compile the source files.

What works: I took the following steps:

  • configure annotation processor for Android Studio to point to androidannotations-2.7.1
  • added a new library inside my project module named androidannotations-api-2.7.1

I can say that this works because Android Studio automatically does the right import for me when I press Alt + Enter.

Problem: at compile time. I get the following message:

Unexpected error. Report a problem to AndroidAnnotations, with the following contents: java.lang.IllegalStateException: could not find the AndroidManifest.xml file coming from the path [/ Home / user / Work / FailAnnotationTryProject / assemblies / classes / production / main / generated] found using dummy file [File: ///home/user/Work/FailAnnotationTryProject/build/classes/production/main/generated/dummy1382376292025.java] (maximum triggering: 10)

I checked my way Facets → Manifest and he is right.

Has anyone got any suggestion or better solution?

+3
source share
1 answer

I ran into the same problem and fixed it by changing Settings-> Compiler-> Annotation Handlers → "Collect Generated Sources Relative to:" to "Model Content Root".

Java Compiler Annotation Processors

Hope this helps.

-1
source

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


All Articles