Problem upgrading the SDK of my project from 2.4.7 to 3.0.9

Have a project that is working fine when using SDK 2.4.7.

I set 3.0.9 to the Current SDK in Eclipse ConnectIQ tool and the build gives me this error:

BUILD: ERROR: Unable to find exact match for target SDK version: 2.4.0 using device: fenix5
BUILD: com.garmin.monkeybrains.ParameterException: Unable to find exact match for target SDK version: 2.4.0 using device: fenix5

I assume this has to do with the -s option on the build line:

BUILD: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.fc29.x86_64/bin/java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar /usr/local/connectiq/connectiq-sdk-lin-3.0.9-2019-2-27-0ad96b4/bin/monkeybrains.jar -o /home/chrisk/workspace/RaceChase/bin/RaceChase.prg -w -y /home/chrisk/src/keys/developer_key -d fenix5_sim -s 2.4.0 -f /home/chrisk/workspace/RaceChase/monkey.jungle

The -jar option seems to be using 3.0.9 due to me flagging the current SDK as 3.0.9.

BUt I assume the -s 2.4.0 is causing the problem, due to the help message printed out when it fails:

BUILD: -s,--sdk-version <arg> SDK version to target

I have looked all through Eclipse project options and have not found anything that seems to be controlling the -s option to be 2.4.0. I assume this needs to be changed to -s 3.0.0.

Any pointers on how to jump from using the 2.4.7 SDK to the 3.0.9, or possibly newer would be appreciated.

Thanks

Chris K

  • In the run configuration in eclipse, where you set the project and device, what do you have for "Target SDK Version"? (you want 3.0.x)

    In the manifest editor for you app, what do you see for "App Minimum SDK Version"?

    The latest 3.0.x SDK is 3.0.11, but I don't think changing right now would help with this, though you probably do want to update to that

  • The Eclipse Run and Debug configurations both say 3.0.x. I did nothing specific to get that value I assume picking 3.0.9 as the "Current SDK" did that automatically.

    In the manifest the minumum SDK version is 1.2.x, which I don't remember ever setting. Just always been that as best I can remember.

    Be glad to upgrade to most recent once this gets sorrted out.

    Thanks

    Chris K

  • When you updated from 2.4.7, did you also update the eclipse plugin?

  • When I go to Help in Eclipse and select Check for updates it says no updates available.

    Not sure how to check the version of the Connect IQ plugin I'll see if I can figure it out.

  • In Eclipse I went to the "Software Available" section and selected Garmin IQ - Reload.

    Now things seem to run.It doesn't show the Build line and the simulator comes up and initial tests are my app is running.

    I downloaded and set 3.0.11 to the Current SDK and it seems to run OK as well.

    So, I may have things sorted out. But now that I don't see the BUILD command being used at compile time I am a little unsure. But so far so good.

    Thanks for your help!

    Chris K