title: IntelliJ: importing Android project from Eclipse leads to duplicate class error
body: <p>I am trying to switch from doing my Android development in Eclipse to using IntelliJ instead. Right now I'm trying to import one of my open source projects. It consists of the main application project, HackerNews (which has a number of jar dependencies, including the support library). It also depends on two library projects I use to share code between apps: DatabaseUtils (which has no dependencies) and HoloTheme (which also depends on the support library).</p>
  
  <p>All three projects are in the same folder and work fine in Eclipse. However, when I try to build the project with IntelliJ, I get couple of errors like this:</p>
  
  <p><code>java: /Users/matthewbbishop/Library/Caches/IdeaIC12/compile-server/github-clean-install_673da148/targets/java-production/HoloTheme/android/generated_sources/build_config/com/airlocksoftware/holo/BuildConfig.java:4: duplicate class: com.airlocksoftware.holo.BuildConfig</code></p>
  
  <p>and </p>
  
  <p><code>java: /Users/matthewbbishop/Library/Caches/IdeaIC12/compile-server/github-clean-install_673da148/targets/java-production/HoloTheme/android/generated_sources/aapt/com/airlocksoftware/holo/R.java:10: duplicate class: com.airlocksoftware.holo.R</code></p>
  
  <p>I've already had to switch the scope of the support libary in the HoloTheme project to provided to fix another error. Here are the current state of the dependencies tabs for the three projects (or I guess they're called modules in IntelliJ?)</p>
  
  <p>Any ideas on what the problem is? Or if you need more info please let me know! Thanks!</p>
  
  <p>EDIT: image embedding isn't working for some reason. See <a href="http://imgur.com/zx2mwV1,aRZQheY,l5RBSmX,aTmhBUz#0" rel="nofollow">this album on imgur instead.</a></p>