PDA

View Full Version : encha Touch 2 Native Packaging for Android. [crunch] libpng error: Read Error



dbora
16 May 2012, 2:11 AM
I am getting following error while packaging app for android.

-crunch:
[crunch] libpng error: Read Error
[crunch] libpng error: Read Error
[crunch] libpng error: Read Error

[ERROR] Copy operation failed src=C://Workspace//POC//Sencha Build//SenchaMVC///ic_icon.png dst=C://Workspace//POC//Sencha Build//Sencha Build//build///res/drawable-ldpi/icon.png
Copy operation failed src=C://Workspace//POC//Sencha Build//SenchaMVC///ic_icon.png dst=C://Workspace//POC//Sencha Build//Sencha Build//build///res/drawable-mdpi/icon.png
Copy operation failed src=C://Workspace//POC//Sencha Build//SenchaMVC///ic_icon.png dst=C://Workspace//POC//Sencha Build//Sencha Build//build///res/drawable-hdpi/icon.png

build is successful but launcher icon is not showing.
I hvae given iconName as
"iconName":"ic_icon.png",

mitchellsimoens
16 May 2012, 4:31 AM
Why is there so many double '//'

anand.arvind
14 Jun 2012, 12:11 AM
Ran into the same problem, found this was due to the path in the

"iconName":"resources/icons/icon.png",


being incorrect, once you fix this it should work, worked for me.

dbora
14 Jun 2012, 12:33 AM
Thanks Anand. I have placed icon file with index.html which worked for me.

franklt69
21 Jun 2013, 7:21 AM
I need some help with this error, I saw in the debug file:


-crunch:
[crunch] libpng error: Read Error
[crunch] libpng error: Read Error
[crunch] libpng error: Read Error
[crunch] Crunching PNG Files in source dir: C:\build\xpmobile\native\res
[crunch] To destination dir: C:\build\xpmobile\native\bin\res
[crunch] Processing image to cache: C:\build\xpmobile\native\res\drawable-hdpi\icon.png => C:\build\xpmobile\native\bin\res\drawable-hdpi\icon.png
[crunch] Processing image to cache: C:\build\xpmobile\native\res\drawable-ldpi\icon.png => C:\build\xpmobile\native\bin\res\drawable-ldpi\icon.png
[crunch] Processing image to cache: C:\build\xpmobile\native\res\drawable-mdpi\icon.png => C:\build\xpmobile\native\bin\res\drawable-mdpi\icon.png
[crunch] Crunched 3 PNG files to update cache

I have in Package Setting:

Icon =
{"57":"resources/icons/Icon.png","72":"resources/icons/Icon~ipad.png","114":"resources/icons/Icon@2x.png","144":"resources/icons/Icon~ipad@2x.png"}

the files created in native\res folder have size = 0kb

some help is welcome

regards
Frank

Note Sencha Cmd v3.1.1.274
sencha-touch-2.2.1/