Command-line compilation issue

New to this platform and SDK. I have a project based on the JsonRequest sample - basically flattened it. Didn't make any changes to code. I don't use Eclipse so am attempting to do this from the command line.

Here's the code: https://github.com/wadewegner/ConnectIQ_JsonRequest

When I run the command ...

monkeyc -o test.prg -m manifest.xml -z resources.xml JsonRequest.mc JsonRequestView.mc

... I get the error:

ERROR: null


Not at all helpful.

How do I figure out the issue?
  • Don't flatten the file structure. I believe the compiler may choke if the output file is generated to the current directory. Try creating a bin folder and specify the output file to be generated into that folder.
  • As I mentioned in my previous post, you should not be trying to flatten the directory structure.

    At the very least, the resource compiler depends on this structure to do resource overrides (so you can have resource definitions that are specific to a device or language). If you only plan to ever support one device and language, it might be okay, but as soon as you want to have custom resources you'll have to go back and recreate the directory structure that you have just eliminated.

    Travis