title: Android Studio import project with gradle changes iml files
body: <p>I have the following entries in my .gitignore:</p>
  
  <pre><code>...
  *.iml
  .idea/
  ...
  </code></pre>
  
  <p>After I git clone a fresh repo (I don't have any iml or .idea in the project), I open Android Studio (v0.2.5), import the project successfully and compile without issues. Now, if I want to edit some files, IntelliJ is showing the red wavy thing almost everywhere, because it can't find external libraries. I realized that when the iml files are regenerated, the external libraries are added like this:</p>
  
  <pre><code>&lt;orderEntry type="library" exported="" scope="TEST" name="guice-3.0-no_aop" level="project" /&gt;
  </code></pre>
  
  <p>FYI, the build.gradle part to add external libraries:</p>
  
  <pre><code>...
  dependencies {
      compile fileTree(dir: 'libs', include: '*.jar')
  }
  ...
  </code></pre>
  
  <p>So now, if I bring the Project Structure pop-up and change the scope from Test to Compile, the red waves disappear, and everything is back to normal.</p>
  
  <p>I'd like to know if it's something that I do wrong on my side, or if it's a bug? Also, regarding the way to handle iml files (version them or not), I couldn't find any straight answer. Everyone seem to do have their own way.</p>
  
  <p>Thanks!</p>