App Icon build error.

missing required file :Icon-ldpi-v4.png

I get this while trying to build for Android.  I have these icons currently in my folder:

 

Icon-xhdpi.png Icon-hdpi.png Icon-mdpi.png Icon-ldpi.png

for Icon-ldpi, I have the first I as eye, and the second ldpi as lowercase L.   Any help would be appreciated. 

Verify that your icons are all the right size.

I think (may be wrong) that if the size is incorrect it won’t matter what the name is.

Oh, and as always tell us exactly what OS you’re using and what version of Corona you’re building with.

My icons are:

36x36

48x48

72x72

96x96

Using windows 7, building for Android, and Corona version: V2016.2949

Thanks.

Icon requirements are documented here:

https://docs.coronalabs.com/guide/distribution/buildSettings/index.html#custom-app-icons

Rob

I didn’t include the xxhdpi nor the xxxhdpi. Would that cause a build error?

Can you copy/paste the entire build error here? 

Are you trying to use push notifications?

Rob

Not using push notifications.   Before I tried to make a custom app icon, everything would build just fine. 

 

16:00:21.856 Excluding specified files from build: 16:00:21.856 excluding: Icon.png 16:00:21.856 excluding: Icon-Small-\*.png 16:00:21.856 excluding: Icon\*@2x.png 16:01:06.813 BuildID: 581f99e68fb31 16:01:12.787 Android build failed (12) after 51 seconds

[Build Error #12] Failed to build APK Missing required file: Icon-ldpi-v4.png More information may be available in the Simulator Console

I conducted a test this morning. Having the wrong sized icon for Icon-ldpi.png built just fine. If I renamed Icon-ldpi.png, the build failed, but I got build error 256 in stead of 12. That could be a Mac vs. Windows difference. But clearly if it can’t find a file named Icon-ldpi.png in the same folder with main.lua, the build will fail.

So a couple of things to try.

Rename the icon and hand type the name to avoid any unicode characters that might get put in place. 

Make sure they are in the same folder as main.lua

If it’s still failing, try removing your exclude block from your build.settings. 

Rob

That actually worked, just retyping it. Thanks Rob for spending your time on my issue.

Verify that your icons are all the right size.

I think (may be wrong) that if the size is incorrect it won’t matter what the name is.

Oh, and as always tell us exactly what OS you’re using and what version of Corona you’re building with.

My icons are:

36x36

48x48

72x72

96x96

Using windows 7, building for Android, and Corona version: V2016.2949

Thanks.

Icon requirements are documented here:

https://docs.coronalabs.com/guide/distribution/buildSettings/index.html#custom-app-icons

Rob

I didn’t include the xxhdpi nor the xxxhdpi. Would that cause a build error?

Can you copy/paste the entire build error here? 

Are you trying to use push notifications?

Rob

Not using push notifications.   Before I tried to make a custom app icon, everything would build just fine. 

 

16:00:21.856 Excluding specified files from build: 16:00:21.856 excluding: Icon.png 16:00:21.856 excluding: Icon-Small-\*.png 16:00:21.856 excluding: Icon\*@2x.png 16:01:06.813 BuildID: 581f99e68fb31 16:01:12.787 Android build failed (12) after 51 seconds

[Build Error #12] Failed to build APK Missing required file: Icon-ldpi-v4.png More information may be available in the Simulator Console

I conducted a test this morning. Having the wrong sized icon for Icon-ldpi.png built just fine. If I renamed Icon-ldpi.png, the build failed, but I got build error 256 in stead of 12. That could be a Mac vs. Windows difference. But clearly if it can’t find a file named Icon-ldpi.png in the same folder with main.lua, the build will fail.

So a couple of things to try.

Rename the icon and hand type the name to avoid any unicode characters that might get put in place. 

Make sure they are in the same folder as main.lua

If it’s still failing, try removing your exclude block from your build.settings. 

Rob

That actually worked, just retyping it. Thanks Rob for spending your time on my issue.