I can't configure my IDE (Intellij IDEA 12) to work with AndroidAnnotations (http://androidannotations.org/) previous configurations screenshots differ from the new ide that jetbrains just released. Can somebody give me a step by step configurations.
I've gotten it working, with some minor issues (which might just be related to my setup, your milage may vary)
Ok, so :
androidannotation-(vernum).jar and the api jarandroidannotation-(vernum).jar inside your project somewhere but not in your libs folder. (I saved it in a separate "aa" folder)Settings/preferences screen. Under Compiler > Annotation Processors are the settings you want. Adjust profiles so the annotations processing can be run on the right modules.androidannotation-(vernum).jar
AndroidManifest file, and it gave duplicate class errors. To solve issue 1 I added the processor option androidManifestFile and set the absolute path of the xml file. The second issue was solved by outputting the generated sources to the gen folder. (this folder is also used by Android compiling for generating R.class and such)gen should be set up as a source folder in your module already.If you got some other issues, let me know, I've been fiddling with it for the past few days. My current only "bug" is that whenever I modify sources that use AndroidAnnotations, I have to rebuild my entire project, instead of just my main module. It seems that Intellij 12 does not reprocess the annotations on module building.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With