title: imported projects give error in android studio 1.2.1.1
body: <p>i use android studio 1.2.1.1 and it doesn't give me any error for new projects.
  but for imported projects it gives me an warning about mismatched Encoding (<a href="http://tools.android.com/knownissues/encoding" rel="nofollow noreferrer">this issue</a>). i changed project and IDE encoding to UTF-8 and this warning doesn't appear any more.<br>
  but , after that , it gives me this error. </p>
  
  <pre><code>F:\Work\workspace\NITask\app\build\intermediates\res\debug\drawable-hdpi-v4\ic_launcher.png: error: Duplicate file.
  F:\Work\workspace\NITask\app\build\intermediates\res\debug\drawable-hdpi\ic_launcher.png: Original is here. The version qualifier may be implied.
  Error:Execution failed for task ':app:processDebugResources'.
  &gt; com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1
  </code></pre>
  
  <p>and in these projects , there isn't R class in my main module.<br>
  i read many questions like <a href="https://stackoverflow.com/questions/29249986/finished-with-non-zero-exit-value">finished with non zero exit value</a> but wasn't useful</p>
  
  <p>update:<br>
  after clean project , it gives me many error about my resources like this:</p>
  
  <pre><code>AAPT err(1779619686): F:\Work\workspace\NITask\app\src\main\res\drawable-xhdpi\shadow.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
  </code></pre>