Android Studio will not run a project recently cloned from github, app.iml module not found
<p>I have been having a lot of trouble cloning a project I made on my other computer onto a new computer in android studio, when first opening the project it prompts that it cant find some <code>.iml</code> modules but i checked in the folder and they are there. When I try to run, clean or build the app i get 2 exceptions thrown: </p>

<blockquote>
  <p><em>Error:java.io.FileNotFoundException: D:\foo\app\build\intermediates\res\merged\debug\drawable-xhdpi-v4\abc_ic_star_black_16dp.png
  (The requested operation cannot be performed on a file with a
  user-mapped section open)</em></p>
</blockquote>

<p><code>:app:mergeDebugResources</code>, which gives me the same quote as above <em>(The requested operation cannot be performed on a file with a user-mapped section open)</em></p>

<p>In the activities I also get an error everytime i try and reference the resource folder: <em>Cannot resolve symbol "R"</em></p>

<p>I believe I am having the same problem as this person earlier this year, but I either did not follow the answers instructions properly or this doesnt work anymore.
<a href="https://stackoverflow.com/questions/34583214/cant-import-android-project-from-git">Can&#39;t import android project from git</a></p>

<p>The solution might be some change to the gitignore file I am using, here is my current gitignore:<a href="https://github.com/asdiamond/GodSpeedInvestmentApp/blob/master/.gitignore" rel="nofollow noreferrer">https://github.com/asdiamond/GodSpeedInvestmentApp/blob/master/.gitignore</a></p>