title: Ghost modules in modules.xml
body: <p>Here is my modules.xml file.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project version="4"&gt;
    &lt;component name="ProjectModuleManager"&gt;
      &lt;modules&gt;
        &lt;module fileurl="file://$PROJECT_DIR$/../...iml" filepath="$PROJECT_DIR$/../...iml" /&gt;
        &lt;module fileurl="file://$PROJECT_DIR$/7Wonders.iml" filepath="$PROJECT_DIR$/7Wonders.iml" /&gt;
        &lt;module fileurl="file://$PROJECT_DIR$/../AFLib/AFLib.iml" filepath="$PROJECT_DIR$/../AFLib/AFLib.iml" /&gt;
        &lt;module fileurl="file://$USER_HOME$/Documents.iml" filepath="$USER_HOME$/Documents.iml" /&gt;
        &lt;module fileurl="file://$USER_HOME$/Documents.iml" filepath="$USER_HOME$/Documents.iml" /&gt;
        &lt;module fileurl="file://$USER_HOME$/Documents.iml" filepath="$USER_HOME$/Documents.iml" /&gt;
        &lt;module fileurl="file://$PROJECT_DIR$/../MultiConnect/MultiConnect.iml" filepath="$PROJECT_DIR$/../MultiConnect/MultiConnect.iml" /&gt;
        &lt;module fileurl="file://$PROJECT_DIR$/../MultiConnect/lib/MultiConnect-lib.iml" filepath="$PROJECT_DIR$/../MultiConnect/lib/MultiConnect-lib.iml" /&gt;
        &lt;module fileurl="file://$PROJECT_DIR$/_7Wonders/_7Wonders.iml" filepath="$PROJECT_DIR$/_7Wonders/_7Wonders.iml" /&gt;
        &lt;module fileurl="file://$PROJECT_DIR$/../AFLib/lib/lib.iml" filepath="$PROJECT_DIR$/../AFLib/lib/lib.iml" /&gt;
      &lt;/modules&gt;
    &lt;/component&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>"7 Wonders" is the app, "MultiConnect" and "AFLib" are my libraries.<br>
  The stuff starting with <code>$USER_HOME</code> is completely unneeded: there is no Documents.iml file.   I delete these lines, Android Studio adds them back.  Then it complains that it can't open a module... 2 modules... 3 modules... and so on, until I delete those lines manually again.  If I click on "Details" in the error message, it offers to remove those modules from the project, but that doesn't seem to have any effect.  I even tried to make the modules.xml file read-only, but Android Studio complains and refuses to work.</p>
  
  <p>This issue does not affect usability, but seeing that "Error Loading Project" every single time is rather annoying.</p>
  
  <p>I don't need the <code>...iml</code> file (the 1st line) either, but at least the Studio doesn't complain about it, and doesn't add several copies of it.</p>
  
  <p>Can anyone explain what's going on?</p>