androidannotations usage tips:
{1} Configuring Eclipse
- Put
androidannotations-X.X.X-api.jarin thelibsfolder - Put
androidannotations-X.X.X.jarin a different folder, such ascompile-libs.androidannotations-X.X.X.jarmust not go in thelibsfolder. - Right-click on your project, choose "Properties"
- Go to
Java Compilerand make sure thatCompiler compliance levelis set to 1.6, otherwise the processor won't be activated - Go to
Java Compiler > Annotation Processingand chooseEnable annotation processing - Go to
Java Compiler > Annotation Processing > Factory Pathand add the processor JAR :androidannotations-X.X.X.jar. - Confirm the workspace rebuild
- Go to
Java Build Path > Librariesand 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

本文档提供了详细的步骤来指导如何在Eclipse中配置AndroidAnnotations,并解决了常见的配置错误问题,如TypeConversion to Dalvik format failed等。
2667

被折叠的 条评论
为什么被折叠?



