title: Getting error while generating signed APK using Android studio
body: <p>Here is the error that keeps coming up on the event log:</p>
  
  <blockquote>
    <p>Generate Signed APK: Errors while building APK. You can find the errors in the 'Messages' view</p>
  </blockquote>
  
  <p>And this in the messages:</p>
  
  <p><strong>Android resource compilation failed
  Output:</strong>  </p>
  
  <p><code>C:\Users\me\AndroidStudioProjects\SimpleCalculator2\app\src\main\res\mipmap-xxhdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.</code></p>
  
  <p><strong>Command:</strong> </p>
  
  <pre><code> C:\Users\me\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971- windows.jar\6c29a9fd1a7f2d4d5ddcbb0cbfa348c6\aapt2-3.2.0-4818971-windows\aapt2.exe compile --legacy\-o\
  
  C:\Users\me\AndroidStudioProjects\SimpleCalculator2\app\build\intermediates\res\merged\release \
  
  C:\Users\me\AndroidStudioProjects\SimpleCalculator2\app\src\main\res\mipmap-xxhdpi\ic_launcher.png
  </code></pre>
  
  <p><strong>Daemon:  AAPT2 aapt2-3.2.0-4818971-windows Daemon #0</strong></p>