Unable to build with icon files

Hey everyone,

Not sure if anyone’s had this issue and can shed some light on it. When I don’t have any icon files in my project directory, I can successfully build an android version of my app and put it on my device and run it. The app has the standard corona icon.

If, however, I put my icons in my project root directory (Icon-mdpi.png, Icon-hdpi.png, Icon-xhdpi.png, Icon-xxhdpi.png) and build the app, Corona gives no errors and says the app has been successfully built. However no apk file is even created.

When I take the icons out, everything builds fine.

I have have standard png files for icons, all the correct sizes. I’ve tried them with or without alpha channels, but nothing is working.

I’m using the android debug key.

Any ideas?!

You’re missing the “Icon-ldpi.png” icon.

When adding icons to your project, you must either include them all or nothing… or else a build error will occur.  You must provide the icons documented here…

   http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#android

is this a typo:  Icon-xxhdpi.png

? I’m not familiar with that icon. 

Thanks! That solved it. What threw me off was that I was getting no build errors, just a “successfully built” message but no apk file.

That’s a size specified on the Android developer site at 144x144. I wasn’t sure if Corona supported that or not so I just threw it into my project folder.

xxhdpi icon resolution icons are a relatively new resolution type that was introduced to Android.

Corona does not currently support xxhdpi Android icons.  The Corona build system will ignore them.

I believe the Mac version of the Corona Simulator only outputs icon build errors to the Corona Terminal.  I don’t think the Windows version has that problem.  It’s a minor bug that we fixed just after the last release.  Sorry about the confusion.

You’re missing the “Icon-ldpi.png” icon.

When adding icons to your project, you must either include them all or nothing… or else a build error will occur.  You must provide the icons documented here…

   http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#android

is this a typo:  Icon-xxhdpi.png

? I’m not familiar with that icon. 

Thanks! That solved it. What threw me off was that I was getting no build errors, just a “successfully built” message but no apk file.

That’s a size specified on the Android developer site at 144x144. I wasn’t sure if Corona supported that or not so I just threw it into my project folder.

xxhdpi icon resolution icons are a relatively new resolution type that was introduced to Android.

Corona does not currently support xxhdpi Android icons.  The Corona build system will ignore them.

I believe the Mac version of the Corona Simulator only outputs icon build errors to the Corona Terminal.  I don’t think the Windows version has that problem.  It’s a minor bug that we fixed just after the last release.  Sorry about the confusion.