Hi,
First time experience with Monkey C.
I did not succeed to build my first app, on my machine
- OS : macOS Monterey 12.6
- Visual Studio Code v1.73.1
- Monkey C extension v1.0.7
- Connect IQ SDK v4.1.7
- Java version "1.8.0_351"
Java(TM) SE Runtime Environment (build 1.8.0_351-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.351-b10, mixed mode)
Steps that i have tried several times, but still to no avail
- Get SDK manager from https://developer.garmin.com/connect-iq/sdk/
- Download the latest Connect IQ SDK (v4.1.7), and set as current SDK
- Download the watches/wearable device i want to develop.
- Install Monkey C extension for VS Code
- Monkey C extension Installation verified.
- Generate and set developer_key
- Following step-by-step Your First Connect IQ app
I'm always stuck at this point. This is my Terminal output after calling Run without debugging. ERROR: InputStream cannot be null
* Executing task in folder HelloWorld: java -Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar /Users/JRENG!/Library/Application Support/Garmin/ConnectIQ/Sdks/connectiq-sdk-mac-4.1.7-2022-11-21-562b8a195/bin/monkeybrains.jar -o bin/HelloWorld.prg -f /Users/JRENG!/Documents/Digital Poems/Garmin/HelloWorld/monkey.jungle -y /Users/JRENG!/Documents/Digital Poems/Garmin/developer_key -d vivoactive4s_sim -w -l 2 ERROR: InputStream cannot be null usage: monkeyc [-a <arg>] [-b <arg>] [-c <arg>] [-d <arg>] [--debug-log-level <arg>] [--debug-log-output <arg>] [-e] [--Eno-invalid-symbol] [-f <arg>] [-g] [-h] [-i <arg>] [-k] [-l <arg>] [-m <arg>] [-o <arg>] [-O <arg>] [-p <arg>] [-r] [-s <arg>] [-t] [-u <arg>] [-v] [-w] [-x <arg>] [-y <arg>] [-z <arg>] -a,--apidb <arg> API import file -b,--apimir <arg> API MIR file -c,--api-level <arg> API Level to target -d,--device <arg> Target device --debug-log-level <arg> Debug logging verbosity [0=errors, 1=basic, 2=intermediate, 3=verbose] --debug-log-output <arg>Output log zip file -e,--package-app Create an application package. --Eno-invalid-symbol Do not error when a symbol is found to be invalid -f,--jungles <arg> Jungle files -g,--debug Print debug output -h,--help Prints help information -i,--import-dbg <arg> Import api.debug.xml -k,--profile Enable profiling support -l,--typecheck <arg> Type check [0=off, 1=gradual, 2=informative, 3=strict] -m,--manifest <arg> Manifest file (deprecated) -o,--output <arg> Output file to create -O,--optimization <arg> Optimization level [0=none, 1=basic, 2=fast optimizations, 3=slow optimizations] [p=optimize performance, z=optimize code space] -p,--project-info <arg> projectInfo.xml file to use when compiling -r,--release Strip debug information -s,--sdk-version <arg> SDK version to target (deprecated, use -c -t,--unit-test Enables compilation of unit tests -u,--devices <arg> devices.xml file to use when compiling (deprecated) -v,--version Prints the compiler version -w,--warn Show compiler warnings -x,--excludes <arg> Add annotations to the exclude list (deprecated) -y,--private-key <arg> Private key to sign builds with -z,--rez <arg> Resource files (deprecated) * The terminal process "java '-Xms1g', '-Dfile.encoding=UTF-8', '-Dapple.awt.UIElement=true', '-jar', '/Users/JRENG!/Library/Application Support/Garmin/ConnectIQ/Sdks/connectiq-sdk-mac-4.1.7-2022-11-21-562b8a195/bin/monkeybrains.jar', '-o', 'bin/HelloWorld.prg', '-f', '/Users/JRENG!/Documents/Digital Poems/Garmin/HelloWorld/monkey.jungle', '-y', '/Users/JRENG!/Documents/Digital Poems/Garmin/developer_key', '-d', 'vivoactive4s_sim', '-w', '-l', '2'" terminated with exit code: 100.
manifest.xml
<?xml version="1.0"?> <!-- This is a generated file. It is highly recommended that you DO NOT edit this file. --> <iq:manifest version="3" xmlns:iq="http://www.garmin.com/xml/connectiq"> <!-- Use "Monkey C: Edit Application" from the Visual Studio Code command palette to update the application attributes. --> <iq:application id="37fc5549-ac6d-4ac8-9f1f-efd94d8a0828" type="watchface" name="@Strings.AppName" entry="HelloWorldApp" launcherIcon="@Drawables.LauncherIcon" minApiLevel="3.2.0"> <!-- Use the following from the Visual Studio Code comand palette to edit the build targets: "Monkey C: Set Products by Version" - Lets you add all producs that meet the minimum SDK version of the application "Monkey C: Edit Products" - Lets you add or remove any product --> <iq:products> <iq:product id="instinct2s"/> </iq:products> <!-- Use "Monkey C: Edit Permissions" from the Visual Studio Code command palette to update permissions. --> <iq:permissions/> <!-- Use "Monkey C: Edit Languages" from the Visual Studio Code command palette to edit your compatible language list. --> <iq:languages/> <!-- Use "Monkey C: Configure Monkey Barrel" from the Visual Studio Code command palette to edit the included barrels. --> <iq:barrels/> </iq:application> </iq:manifest>
Did i missed something?
I haven't tried to develop on Eclipse. Because i'm way more familiar and comfortable writing on VS Code.
Please help.
Thank you.