title: Migrating from Eclipse to Android Studio Error Content is not allowed in prolog
body: <p>I've seen many mentions of this problem but most say it happens intermitently.  For me I cannot compile or run my app at all.  There is a build error and it is always there.<br>
  I have also seen stack exchange questions stating it is due to the Gradle version and it just needs to be updated in the build.gradle file.  I am already using a far newer version than most of those questions.<br>
  It seems to be an error caused by my resource files including all my drawables, and strings.  </p>
  
  <p>Note this project runs fine in Eclipse, I have it working on hardware.  When I import it to Studio I get errors. </p>
  
  <p>I have tried the following.
  -Restarting Studio
  -Clean Project then Rebuild
  -Moving resource files to everywhere else in file system within project</p>
  
  <pre><code>Information:Gradle tasks [:app:compileDebugSources]
  :app:preBuild
  :app:preDebugBuild
  :app:checkDebugManifest
  :app:prepareDebugDependencies
  :app:compileDebugAidl UP-TO-DATE
  :app:compileDebugRenderscript UP-TO-DATE
  :app:generateDebugBuildConfig UP-TO-DATE
  :app:generateDebugAssets UP-TO-DATE
  :app:mergeDebugAssets UP-TO-DATE
  :app:generateDebugResValues UP-TO-DATE
  :app:generateDebugResources UP-TO-DATE
  :app:mergeDebugResources
  Error:Content is not allowed in prolog.
  :app:mergeDebugResources FAILED
  C:\Users\jezell\Documents\AndroidStudioProjects\DefenderHud\app\src\main\res\drawable_hdpi\app_setup.png
  Error:Error: Content is not allowed in prolog.
  Error:Execution failed for task ':app:mergeDebugResources'.
  &gt; C:\Users\jezell\Documents\AndroidStudioProjects\DefenderHud\app\src\main\res\drawable_hdpi\app_setup.png:0:0: Error: Content is not allowed in prolog.
  Information:BUILD FAILED
  Information:Total time: 2 mins 37.404 secs
  Information:3 errors
  Information:0 warnings
  Information:See complete output in console
  </code></pre>