VisualStudio Code: Manifest file is not in the correct format

Hi,

In VisualStudio Code, each time I try to run one of the commands "Edit Application", "Edit Languages" or "Edit Annotations" I receive the message "Manifest file is not in the correct format".

The Monkey C plugin for VStudio is v0.1.13 (latest).

I also have installed (and turned it the current) the latest ConnectIQ SDK (version 4.0.4), although the error was already shown on previous versions.

The SDK config file (which I edited to remove any spaces and has a valid path) contains the following:

C:\Users\NUNOAN~1\AppData\Roaming\Garmin\ConnectIQ\Sdks\connectiq-sdk-win-4.0.4-2021-07-01-9df386fcd\

Can anyone help me solve this problem?

Thanks in advance.

Manifest File:

<!-- This is a generated file. It is highly recommended that you DO NOT edit this file. -->
<iq:manifest xmlns:iq="">www.garmin.com/.../connectiq" version="3">
    <iq:application entry="CoPescaApp" id="35e0de(...)" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="3.1.0" name="@Strings.AppName" type="watch-app">
        <iq:products>
            <iq:product id="fenix6xpro"/>
            <iq:product id="vivoactive3"/>
        </iq:products>
        <iq:permissions>
            <iq:uses-permission id="Communications"/>
            <iq:uses-permission id="Positioning"/>
        </iq:permissions>
        <iq:languages>
            <iq:language>eng</iq:language>
            <iq:language>por</iq:language>
        </iq:languages>
        <iq:barrels>
            <iq:depends name="XYZ" version="0.0.0"/>
        </iq:barrels>
    </iq:application>
</iq:manifest>
  • It's hard to tell because the forum apparently edited the 2nd line of what you pasted (the line with "iq:manifest") to render the URL as a link. There's a stray "> which is making the XML invalid, but I don't know if that's in your actual manifest, or if the forum put it there.

    To avoid that kind of thing, use Insert > Code.

    I will say that the following (similar) manifest file works for me without any edits:

    <?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">
        <iq:application entry="RandomAppName" id="..." launcherIcon="@Drawables.LauncherIcon" minSdkVersion="3.1.0" name="@Strings.AppName" type="watch-app">
            <iq:products>
                <iq:product id="fenix6xpro"/>
                <iq:product id="vivoactive3"/>
            </iq:products>
            <iq:permissions>
                <iq:uses-permission id="Communications"/>
                <iq:uses-permission id="Positioning"/>
            </iq:permissions>
            <iq:languages>
                <iq:language>eng</iq:language>
                <iq:language>por</iq:language>
            </iq:languages>
            <iq:barrels>
                <iq:depends name="XYZ" version="0.0.0"/>
            </iq:barrels>
        </iq:application>
    </iq:manifest>