IDEA 11 Android module problem

I'm working on a Android project that has some unusual business requirements and am having trouble after trying to upgrade to IDEA 11.  Because the main application is open source, I created a secondary library that for now is still closed source (if that changes, I can simple integrate the library into the application).  From a compilation perspective, the library is dependent on the application and is set up as such.  The manifest file for the main application includes declaration of the objects in the library.

In order to get the library objects to be resolvable and included during the build, I created a dependency in the application to the library (which is correctly flagged as circular).  This compiles and works fine in IDEA 10.5.  When I open the same project in IDEA 11, it fails to compile due to duplicate copies of the compiled resources (R.java) in the library even though it's just compiling the same resources (or am I missing something?).  Is it possible to suspend that check?  I also tried adding the output of the library directory as a library dependency, but that lead to some strange errors.  In the process, I tested every scope option that I could for the offending dependency as well as checking/unchecking the export box (and invalidated caches as I went) but haven't found a way to solve the issue.

So, is there any way to maintain this separation of the library from the main project using 11 and, if so, how?  


Please sign in to leave a comment.