Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Error - libpng error: Not a PNG file

Tags:

android

png

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 :)

like image 410
Karlo Kokkak Avatar asked Sep 21 '14 07:09

Karlo Kokkak


1 Answers

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.

like image 159
chiastic-security Avatar answered Nov 07 '22 03:11

chiastic-security