Unable to Build

I am getting the following error when building and looking for some assistance. I have the same problem with newer SDK versions (up to 3.xx) .. but it will work fine if I go back to 2.4.1.


Thanks Kevin

************************************

BUILD: C:\Program Files\Java\jre1.8.0_171\bin\java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar C:\Users\Kevin.Win8\Desktop\GarminDev\connectiq-sdk-win-2.4.9\bin\monkeybrains.jar -o "C:\Users\Kevin.Win8\Desktop\GarminDev\MyProjects\HR Sleep\bin\HR Sleep.prg" -w -y C:\Stuff\Garmin\developer_key -d vivoactive_hr_sim -s 2.3.0 -f "C:\Users\Kevin.Win8\Desktop\GarminDev\MyProjects\HR Sleep\monkey.jungle"
BUILD: ERROR: An undefined resource reference was detected during resource processing: @Strings.prompt.
BUILD: Complete
Aborting launch due to failed build.
  • The SDKs have been getting better at catching things curing the compile.

    Are you sure you're not trying to reference a sting named prompt someplace in your resources? (settings, etc)
  • Found the issue .. it was the Garmin generated layout.xml file.

    <layout id="MainLayout">
    <label x="center" y="5" text="@Strings.prompt" color="Gfx.COLOR_WHITE" justification="Gfx.TEXT_JUSTIFY_CENTER" />
    <bitmap id="id_monkey" x="center" y="30" filename="../drawables/monkey.png" />
    </layout>

    I used a search tool for the offending text and that is the only place it was used. I just deleted the text and it is fine now. I do not use layouts at all.

    Kevin
  • I checked this out with a template based App on the vivoactive HR in the CIQ sim and wasn't running into this. Had you edited the strings.xml already?
  • I checked this out with a template based App on the vivoactive HR in the CIQ sim and wasn't running into this. Had you edited the strings.xml already?


    The settings have not changed for months with no issues until recently, ie strings.xml file etc. I did edit the layout.xml file and deleted the above offending text. It is working fine now. I personally believe the issue happened when installing the 3.xx SDK and then going back to an older version 2.4.9. That seems to be the thing that caused the issue.
  • If you don't use layouts, just delete the layout folder under resources. It's not being used, yet gets included in the .prg.