I have the following entries in my .gitignore:
... *.iml .idea/ ... 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:
<orderEntry type="library" exported="" scope="TEST" name="guice-3.0-no_aop" level="project" /> FYI, the build.gradle part to add external libraries:
... dependencies { compile fileTree(dir: 'libs', include: '*.jar') } ... 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.
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.
Thanks!