androidannotations usage tips:
{1} Configuring Eclipse
- Put
androidannotations-X.X.X-api.jar
in thelibs
folder - Put
androidannotations-X.X.X.jar
in a different folder, such ascompile-libs
.androidannotations-X.X.X.jar
must not go in thelibs
folder. - Right-click on your project, choose "Properties"
- Go to
Java Compiler
and make sure thatCompiler compliance level
is set to 1.6, otherwise the processor won't be activated - Go to
Java Compiler > Annotation Processing
and chooseEnable annotation processing
- Go to
Java Compiler > Annotation Processing > Factory Path
and add the processor JAR :androidannotations-X.X.X.jar
. - Confirm the workspace rebuild
- Go to
Java Build Path > Libraries
and add the API JAR :androidannotations-X.X.X-api.jar
, unless it's already in the build path (ADT 17 automatically adds JARs that are in the libs folder).
{2} error fix:
1."Type Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/androidannotations/annotations/AfterInject;" resolution