This Question is Answered

2 "helpful" answers available (2 pts)
4 Replies Last post: Apr 13, 2012 4:25 PM by Eugene Kudelevsky  
Justin Friberg Newbie 3 posts since
Feb 21, 2012
Currently Being Moderated

Feb 22, 2012 12:25 AM

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 ( 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? 

Otto von Wachter Newbie 74 posts since
Jan 15, 2004
Currently Being Moderated
Feb 22, 2012 2:57 AM in response to: Justin Friberg
Re: IDEA 11 Android module problem

Do you absolutely need the in both modules?  If not, you could exclude the gen directory in your library project.  I did that before and it solved a compile problem I had.

Eugene Kudelevsky JetBrains 186 posts since
Jun 19, 2009
Currently Being Moderated
Apr 13, 2012 4:25 PM in response to: Justin Friberg
Re: IDEA 11 Android module problem

Currently, we support cyclic dependencies between libraries, so you can try to extract a part of application code to a second library module.

More Like This

  • Retrieving data ...