forked from androidannotations/androidannotations
-
Notifications
You must be signed in to change notification settings - Fork 0
Eclipse Project Configuration
shuya-inc edited this page Feb 21, 2012
·
3 revisions
Once you have downloaded AndroidAnnotations, you may add it to your projects.
Warning: Make sure executing
java -versionin a prompt shows version 1.6.X.
Warning: Annotation processing is not well implemented on Eclipse 3.4.X. Please use at least Eclipse 3.5.
Note: If you use Maven in your Android projects, please follow the Maven + Eclipse instructions instead.
Do the following to use AndroidAnnotations within the Eclipse IDE:
- Right-click your project, choose "Properties"
- Go to Java Compiler and make sure that "Compiler compliance level" is set to "1.6", otherwise the processor won't be activated
- Go to Java Compiler > Annotation Processing and choose "Enable annotation processing"
- Go to Java Compiler > Annotation Processing > Factory Path and add the processor JAR : androidannotations-X.X.X.jar
- Go to Java Build Path > Libraries and add the API JAR : androidannotations-X.X.X-api.jar
- Confirm the workspace rebuild
- You can start using AndroidAnnotations and you should now see any annotation problems as regular error markers within the editor and in the Problem view.
This documentation is highly inspired (not to say c&p) from the Hibernate Validation Annotation Processor Documentation. If you do not use Eclipse, you will find it quite helpful.
03/30/2012 The 2.5.1 release is out
- Get started!
- Cookbook, full of recipes
- Examples
- Read the FAQ
- Join the Mailing list
- Create an issue