I'm having an error with Android Studio. Do you guys happen to know how to solve it?
I have already checked if the files exists. They do. I already checked the image format and also resaved to png. I still get the following error. What could it be?
--- The error ---
:app:mergeDebugResources libpng error: Not a PNG file
Error: Failed to run command: C:\Users\Kharlo PC\AppData\Local\Android\android-studio1\sdk\build-tools\android-4.4W\aapt.exe s -i D:\XfixedOdometer\app\src\main\res\drawable-hdpi\ic_launcher.png -o D:\XfixedOdometer\app\build\intermediates\res\debug\drawable-hdpi-v4\ic_launcher.png
Error Code: 42
Output: libpng error: Not a PNG file
Thanks in advance :)
Well... it's not a PNG file! Or just possibly it's a PNG file but not a supported variant.
If you would like any more info then you will have to upload the file somewhere and then post a link. It's impossible to tell anything more without it.
EDIT: Now that you've uploaded the file, I can see that it's a JPEG! It has a .png
extension, but it's not a PNG file.
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