Acknowledged

The sample projects Toasts and Selectable are broken in 4.2.0-beta2

% cd $sdk420/samples/Selectable
% "$sdk420/bin/monkeyc" "-o" "bin/Selectable.prg" "-f" monkey.jungle "-y" "$developer_key" "-w" "-l" "1" "-d" "approachs60"
WARNING: approachs60: The launcher icon (16x16) isn't compatible with the specified launcher icon size of the device 'approachs60' (40x33). Image will be scaled to the target size.
ERROR: approachs60: Could not resolve /images/back_default.png
ERROR: approachs60: Could not resolve /images/back_pressed.png
ERROR: approachs60: Could not resolve /images/menu_default.png
ERROR: approachs60: Could not resolve /images/menu_pressed.png
ERROR: approachs60: An undefined resource reference was detected during resource processing: @Drawables.DefaultBackButton.
ERROR: approachs60: An undefined resource reference was detected during resource processing: @Drawables.PressedBackButton.
ERROR: approachs60: An undefined resource reference was detected during resource processing: @Drawables.DefaultMenuButton.
ERROR: approachs60: An undefined resource reference was detected during resource processing: @Drawables.PressedMenuButton.

But if I compile it (the same project, taken from the 4.2.0beta2 samples) with 4.1.7 the compilation succeeds, and I can run the resulting program. So this is probably a bug in 4.2.0 (unless there's a subtle bug in the project that earlier compilers simply didn't notice).

For Toasts, I get

% cd $sdk420/samples/Toasts
% "$sdk420/bin/monkeyc" "-o" "bin/Toasts.prg" "-f" monkey.jungle "-y" "$developer_key" "-w" "-l" "1" "-d" "fenix7"
ERROR: Device 'fenix7' does not support API Level '4.2.0'.

And this time 4.1.7 agrees. So in this case it looks like the sample project needs fixing.

  • So, it does mean nobody try to compile app as entry is bad?

    btw.  Can watch faces use toasts?

  • Selectable works fine for me. 4.2.0 beta2 and approach60.  Using vs code and the defaults for type checking.

  • For toasts, the error you see is valid for the fenix7 right now.  As far as the sim and devices goes, the fenix7 is at 4.1.x, and you need to use the fenix7system6preview device instead which is 4.2.0.  Also, you want to use the 4.2.0 beta 2 SDK, and not a 4.1.x SDK.

    Then there is a typo in the manifest.xml, where for entry, it has "ToasterApp" and that needs to be changed to match the app.mc "ToastsApp"

    Using the system6preivew device (this is system 6 functionality) and correcting the typo, it runs in the sim: