Search code examples
androidintellij-ideaandroid-annotations

Duplicated classes in Intellij IDEA when using Android Annotations


I'm using Intellij IDEA and Android Annotations in my android project. How can I avoid this little annoying thing when I have to delete manually autogenerated classes before rebuilding project?

This is an error I'm talking about

enter image description here

To make it work I have to delete manually classes which was generated by Android Annotations.


Solution

  • This problem will be fixed in IDEA 12.0.1.

    Workaround for 12.0 build: explicitly exclude the root with the generated sources from compilation. You can do it in Settings | Compiler | Excludes.