Build Error textArea not supported by device

Hi, I am getting a build error: TextArea not supported, for some devices that do support CIQ 3.1.0 (e.g. D2 delta and vivoactive3) these devices are CIQ 3.1.0 according to :https://developer.garmin.com/connect-iq/compatible-devices/

Just tested the vivoactive3 in the simulator and it works just fine, but when exporting the project I get: 

ERROR: vivoactive3: C:\Garmin-projects\Face\resources\layouts\layout.xml:20: TextArea is not supported by device 'vivoactive3'.

in my layout file I have:

<text-area id="TimeLabel" x="center" y="55%" width="100%" height="30%" justification="Graphics.TEXT_JUSTIFY_CENTER | Graphics.TEXT_JUSTIFY_VCENTER" color="Graphics.COLOR_WHITE">
        <fonts>
            <font>Graphics.FONT_NUMBER_HOT</font>
            <font>Graphics.FONT_NUMBER_MEDIUM</font>
            <font>Graphics.FONT_NUMBER_MILD</font>
        </fonts>
    </text-area>

running SDK: 4.2.3

Visual Code with MonkeyC v. 1.0.8

Appreciate the help

/Fredrik

  • UPDATE: 

    when I updated the minSDKVersion in my manifest file to 3.1.0 I see that the vivoactive3 in fact is not a CIQ 3.1 device:

    WARNING: Device name: 'vívoactive® 3' Part number: '006-B3446-00' CIQ ver: '3.0.3' is being ignored by the package tool because it does not support the minimum API Level set for this project
    It seems like this page is not entirely correct: https://developer.garmin.com/connect-iq/compatible-devices/
     

    or there is a bug in the device in the SDK Manager 

  • I suppose I need to create a separate Layout file for all devices that are pre-3.1.0. Is there an easy way to do that, so that I don't need to add device specific layout files? 

  • Unfortunately not. I wanted to do something similar for System 6 devices but ended up having to list each device individually. You do not need separate files, but you'll need separate entries for each device in the jungles file to point to the relevant file.

  • Not very easy, but easier than having a layout for each device. Add a resource directory for the devices with old cow, another with new. This way you might be able to write less code. It depends on many other things, like round, square, screen size, but maybe some of these "dimensions" is not relevant to you.

  • Not exactly sure what I'm doing wrong here. The Vivoactive3 does not support <text-areas> in the layout file, so I created a new layout file for vivoactive3 devices, as per below. I still get build errors for the vivoactive3

     

    Build error:

    ERROR: vivoactive3: C:\Garmin-projects\Face\resources-round-240x240\layouts\layout.xml:9: TextArea is not supported by device 'vivoactive3'.
    ERROR: vivoactive3: C:\Garmin-projects\Face\resources-round-240x240\layouts\layout.xml:16: TextArea is not supported by device 'vivoactive3'.
    ERROR: vivoactive3: C:\Garmin-projects\Face\resources\layouts\layout.xml:12: TextArea is not supported by device 'vivoactive3'.
    ERROR: vivoactive3: C:\Garmin-projects\Face\resources\layouts\layout.xml:20: TextArea is not supported by device 'vivoactive3'.
    ERROR: Failed to export application for device id: 'vivoactive3'.

    I don't have any text-areas in the VivoActive3 layout file. I have the resources-round-240x240 layout file to override some other layout items, it includes text-areas, as well as my "stanrard" layout file.

    It seems like the builder does not care about overriding the layout file. I thought that the compiler would build the layout file that was most specific for the device (layouts-vivoactive3) and ignore the other layout files. Did I misunderstand, or did anything wrong?