AndroidAnnotations Eclipse Configuration with ADT 23

Starting with ADT 23, there seems to be no way to add a factory annotation processor. Project path:

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

Does anyone know how to add androidannotations-XXX-api.jar to annnotaions handling in the latest Eclipse ADT?

+4
android annotations
source share
2 answers

This is a known ADT package issue and will be fixed with ADT 23.0.3. In the meantime, you can fix this by downloading the standard Eclipse distribution and installing the ADT plugin . Or, if you want to use an existing ADT package, you can install the required JDT plugin, as described here .

Also note that you do not need to add androidannotations-XXX-api.jar, as you wrote in OP. You must add androidannotations-XXXjar to the annotation processing factories and androidannotations-XXX-api.jar to your class path (libs).

+3
source share

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

Add androidannotations-api-3.0.1.jar to the libs\androidannotations-api-3.0.1.jar .

Finally, you must add both paths to the file in your Factory path. for example, {Your Project}/compile-libs/androidannotations-3.0.1.jar and {Your Project}/libs/androidannotations-api-3.0.1.jar

+1
source share

All Articles