Saturday, July 28, 2012

Icon.png: failure while uploading to Google Play Market


After upload of APK to Google Market this is exception that Google returns:


The file is invalid: W/ResourceType( 2338): Failure getting entry for 0x7f0200cb (t=1 e=203) in package 0 (error -75) W/ResourceType( 2338): Failure getting entry for 0x7f0200cb (t=1 e=203) in package 0 (error -75) W/ResourceType( 2338): Failure getting entry for 0x7f0200cb (t=1 e=203) in package 0 (error -75) W/ResourceType( 2338): Failure getting entry for 0x7f0200cb (t=1 e=203) in package 0 (error -75) W/ResourceType( 2338): Failure getting entry for 0x7f0200cb (t=1 e=203) in package 0 (error -75) ERROR getting 'android:icon' attribute: attribute is not a string value


The fix was to put to each res/drawable[..] folder you have a copy of the icon.png

hdpi - 72x72
ldpi - 36x36
mdpi - 48x48
xhdpi- 96x96