I replaced the default logo files "ic_launcher.png" in the different dpi folders with my own files, also named "ic_launcher.png", but now I'm getting this error:
Error: failed to read PNG signature: file does not start with PNG signature
when generating apk, on all the 5 files I replaced in the mipmap folders
How do I fix that?
When you create the .apk all the resources are analyzed and if you get the error message:
Error:error: failed to read PNG signature: file does not start with PNG signature.
This error is caused because your resource is not really a .png image, the format is incorrect, the file is corrupt or the .png file is really a vector asset.
you can check it by opening your file.
Yeah me too got this error but you can fix this by choosing refactor>rename and rename the extension into .jpg instead of .png and refactor it that's all.. and you will be not getting error anymore
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With