Build failed for fenix5s

Former Member
Former Member
Hello,

I'm trying to build my app but it fails with this message:
BUILD: ERROR: The specified icon is larger (40x40) than the allowed icon size (36x36) for fenix5s
BUILD: ERROR: Failed to compile application for device id 'fenix5s'.


I have aresources-fenix5s directory with the correctly named icon file of 36x36 px inside, but that does not seem to help. What could be wrong? I'm looking in the samples that come with the SDK and it seems that the resource identifier is correct (resources-fenix5s). I have other resource overrides in my project (fr920xt, vivoactive etc.) and they are all working fine.

I also cleaned the project, and manually deleted the bin directory files, but still I get the same message.
  • Checked on my project, with 40x40, 38x38 and 36x36 icons in resources-fenix5s folder. 36x36 works ok.

    BUILD: C:\Program Files\Java\jre1.8.0_121\bin\java ....
    BUILD: ERROR: The specified icon is larger (40x40) than the allowed icon size (36x36) for fenix5s
    BUILD: Complete
    Aborting launch due to failed build.
    ======================================================
    BUILD: C:\Program Files\Java\jre1.8.0_121\bin\java ...
    BUILD: ERROR: The specified icon is larger (38x38) than the allowed icon size (36x36) for fenix5s
    BUILD: Complete
    Aborting launch due to failed build.
    ======================================================
    BUILD: C:\Program Files\Java\jre1.8.0_121\bin\java ...
    BUILD: Complete
    Attempt 1 to connect to simulator...

    Maybe you have incorrect link in drawables.xml
    <drawables>
    <bitmap id="LauncherIcon" filename="launcher_icon.png" />
    </drawables>

    Make sure you have local link there, and file name.
  • Former Member
    Former Member
    Hey,

    Another thing you might want to double check is that you have the latest SDK and plugin installed. This was a bug that was fixed in the latest plugin release. It could be that simple.

    Thanks,
    Coleman
  • Former Member
    Former Member
    What is the latest plugin version? I have 2.2.3 while the SDK version is 2.2.4.
  • What is the latest plugin version? I have 2.2.3 while the SDK version is 2.2.4.


    This is correct. SDK and plugin versions don't necessarily match.
  • Former Member
    Former Member
    Well, ok, then I have the latest version which has the resources related bug fixed. But I'm still not succeeding... As a workaround, I use a 33x33 pixel icon, I get warning notifications that it is smaller than what most devices support, but in that way the build doesn't fail. I'm posting an image of my setup, what am I doing wrong?

  • I don't know if this will help, but what if you remove launcher_icon from the default resources directory and only have it in the overrides?
  • Don't you need to have a separate drawables.xml referencing the device specific launcher icon in each device directory? This is the way I have always done my overrides.
  • Could be. When I do this I have the .xml (with just launcher_icon) in the over-ride directory with that launcher_icon, but that's just the way I do it.

    Many times though, I just have one launcher_icon that is sized so that it will work for all the devices I support. If it's a bit small, it gets padded for the device during the build.
  • Don't you need to have a separate drawables.xml referencing the device specific launcher icon in each device directory? This is the way I have always done my overrides.
    Yes, this is the problem. You cannot override by just placing an image into a resource specific directory. You need to have an xml file to reference the alternate image. You only need to include the overrides in the xml file.
  • Not sure it's really a problem, as the same small .xml for just launcher_icon would be in each, and if you don't want a number of different files that are all the same, you do it once and use a link for the other override directories.