Note that there are some explanatory texts on larger screens.

plurals
  1. POIntelliJ: importing Android project from Eclipse leads to duplicate class error
    primarykey
    data
    text
    <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>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload