AndroidAnnotations Eclipse configuration with ADT 23
Asked Answered
D

2

4

Since ADT 23, there seems to have no way to add Annotation Processor Factory Path to projects:

No "Annotation Processing" item in Poject>Properties>Java Compiler.

Does anyone know how to add androidannotations-X.X.X-api.jar to the annnotaions processing in the last Eclipse ADT?

Disagree answered 4/7, 2014 at 9:8 Comment(0)
S
3

This is a known problem of the ADT bundle, and will be fixed as of ADT 23.0.3. In the meantime, you can fix this by downloading a standard Eclipse distribution and installing the ADT plugin to that. Or if you want to use your existing ADT bundle, you can install the necessary JDT plugin as described here.

Also please note that you do not have to add the androidannotations-X.X.X-api.jar as you written in the OP. You have to add the androidannotations-X.X.X.jar to the annotation processing factories and androidannotations-X.X.X-api.jar to your classpath (libs).

Suppuration answered 29/7, 2014 at 9:4 Comment(1)
Argh seem to be continuously running my head against the wall todayAtman
O
1

i am using ADT23 with Eclipse Luna. Go to your project properties and select Java Compiler and select you Compiler Compliance Level to 1.6. Then your Annotation Processing option will be enable. Create a folder compile-libs in your project, where your lib folder and paste jar file androidannotations-3.0.1.jar this location compile-libs\androidannotations-3.0.1.jar .

Add androidannotations-api-3.0.1.jar in your project libs\androidannotations-api-3.0.1.jar .

Finally, you must add both file path in your Factory Path. e.g {Your Project}/compile-libs/androidannotations-3.0.1.jar and {Your Project}/libs/androidannotations-api-3.0.1.jar

Octamerous answered 4/9, 2014 at 6:15 Comment(1)
This is not answering the question. The problem here is the ADT 23 bundle does not has the Annotation Processing at all, because of a bug introduced in the bundle, which will be resolved in the next version.Suppuration

© 2022 - 2024 — McMap. All rights reserved.