No API 4.0 available to select after SDK update?

Hello people, 

I updated my SDK to 4.09 today, and wanted to test out some of the new watches, however when I open the Run configuration in eclipse and select the new watches - the supported API level is blank and non - selectable.

Any ideas why I cannot select or see 4.0?

Is the Sim not ready for testing yet?

  • Make sure you have the latest Eclipse Plugin.

    4.0 isn't really that new as it's been on the venu2 for some time. The fenix7 and Epix2 are just new watches with 4.0.

    4.1 is the newest stuff - what's also called system 5, and for that there are two "system 5 preview" devices.  the fenix 6 pro system 5 preview device can only be used with VS Code and not eclipse

    Whatever devices your trying as trargets - you downloaded them using the SDK manager, correct?

  • If I use Eclipse with the new Epix gen 2 or Fenix 7X devices, the dropdown contains 4.0 as its only option, so it works for me.

    As Jim said, you may need to update your Eclipse Connect IQ plugin.

    Hilariously, the "Choose Target API Level" setting doesn't actually do anything, based on the following evidence:

    - I'm fairly sure that Travis (a Garmin employee) confirmed years ago that it doesn't anything

    - the equivalent setting doesn't exist in the VS Code Monkey C extension (so even if does something, it can't be very important)

    4.1 is the newest stuff - what's also called system 5, and for that there are two "system 5 preview" devices.  the fenix 6 pro system 5 preview device can only be used with VS Code and not eclipse

    To clarify this, System 5 is:

    - 3.3 for devices currently on 3.x (like Fenix 6 Pro)

    - 4.1 for devices currently on 4.x (like Venu 2)

    The Fenix 6 Pro System 5 Preview is broken in Eclipse, perhaps because the SDK/plugin doesn't support 3.3 for the Choose Target API Level dropdown.

  • Yep..... Just tried a new installation of eclipse, with new 4.10 installed, and same thing - I don't have anything in the drop down for the API selection for any of the new watches?  Have I missed something?    In SKD manager it says 78 of 78 installed..... is there another thing I need to do in eclipse or that should be it? 

  • Can you select the Venu2?  What version of the eclipse plugin are you using?

  • The latest, I downloaded it today, for JAVA. Right, I tested app using VS and it works with eclipse, then I tried to compile in eclipse but it failed at the Fenix 7X with this code:

    BUILD: ERROR: 8bpp devices not supported!
    BUILD: ERROR: 8bpp devices not supported!
    BUILD: WARNING: The launcher icon (30x30) is smaller than the specified launcher icon size of the device 'fenix7' (40x40). Padding will be added to the image to center it.
    BUILD: ERROR: Failed to compile application for device id 'fenix7'.
    BUILD: com.garmin.monkeybrains.Packager$PackageException: [200] Failed to compile application for device id 'fenix7'.
    BUILD: at com.garmin.monkeybrains.Monkeybrains.packageApplication(Monkeybrains.java:1044)
    BUILD: at com.garmin.monkeybrains.Monkeybrains.run(Monkeybrains.java:2437)
    BUILD: at com.garmin.monkeybrains.Monkeybrains.simpleMain(Monkeybrains.java:252)
    BUILD: at com.garmin.monkeybrains.Monkeybrains.main(Monkeybrains.java:281)
    BUILD: usage: monkeyc [-a <arg>] [-d <arg>] [-e] [--Eno-invalid-symbol] [-f <arg>] [-g]
    BUILD: [-h] [-i <arg>] [-m <arg>] [-o <arg>] [-p <arg>] [-r] [-s <arg>] [-t] [-u
    BUILD: <arg>] [-v] [-w] [-x <arg>] [-y <arg>] [-z <arg>]
    BUILD: -a,--apidb <arg> API import file
    BUILD: -d,--device <arg> Target device
    BUILD: -e,--package-app Create an application package.
    BUILD: --Eno-invalid-symbolDo not error when a symbol is found to be invalid
    BUILD: -f,--jungles <arg> Jungle files
    BUILD: -g,--debug Print debug output
    BUILD: -h,--help Prints help information
    BUILD: -i,--import-dbg <arg> Import api.debug.xml
    BUILD: -m,--manifest <arg> Manifest file
    BUILD: -o,--output <arg> Output file to create
    BUILD: -p,--project-info <arg>projectInfo.xml file to use when compiling
    BUILD: -r,--release Strip debug information
    BUILD: -s,--sdk-version <arg> SDK version to target
    BUILD: -t,--unit-test Enables compilation of unit tests
    BUILD: -u,--devices <arg> devices.xml file to use when compiling (deprecated)
    BUILD: -v,--version Prints the compiler version
    BUILD: -w,--warn Show compiler warnings
    BUILD: -x,--excludes <arg> Add annotations to the exclude list
    BUILD: -y,--private-key <arg> Private key to sign builds with
    BUILD: -z,--rez <arg> Resource file

  • So - It appears that the 4.10 Beta does not allow exporting of projects.

    I fixed the problem by going into the  

    Eclipse, Window, Preference, Connect IQ and ticked the box for allow the SDK route, then that allowed me to now select 4.0.

    Insert Palm in face emoji

  • The Venu2 is 4.0.  Can you run with that as a target?  Is this only one app?

    Something similar here: https://forums.garmin.com/developer/connect-iq/f/discussion/283793/can-t-select-as-build-targets-fenix-7-series

    Have you tried VS Code?

  • Riddle me this. 

    Using eclipse IDE 18, the compiler typically took hours, and I mean HOURS to compile my app... probably 2-3 hours.

    In trying to solve the original issue, installing the newest eclipse, and now with SDK 4.09 selected, It's telling me it finished Exporting in about 8 minutes........

    The IQ file is slightly larger than the last version.... what has happened to cause this?

  • Possibly a different JRE. 

    I'm still using jre1.8.0_241, as newer ones made exporting take much longer.

  • I have JRE 17.0.1v20211116-1657.   

    It seems to have actually compiled, but wow that made a massive difference for whatever reason.