Home > Uncategorized > Invalid config.xml – the value of id attribute is not valid

Invalid config.xml – the value of id attribute is not valid

I decided eventually to upgrade from Phonegap-0.9.4 to Phonegap 2.4.0 for my BlackBerry development work after having trouble getting the camera to work, the old phonegap was ignoring my targetWidth / targetHeight parameters, couldn’t close the camera (key injection), and failed to save any image over 1.5 Meg.

Anyway, the new phonegap got round most of the problems with the camera, but when it came to packaging for the Playbook, I hit this error “Invalid config.xml – the value of id attribute is not valid

load-device:

[exec] [INFO] Parsing command line options
[exec] [INFO] Parsing bbwp.properties
[exec] [INFO] Validating WebWorks archive
[exec] [INFO] Parsing config.xml
[exec] [ERROR] Invalid config.xml – the value of id attribute is not valid

The issue was simple to fix, but didn’t seem to be explained online, so here’s the solution:

<widget xmlns=”http://www.w3.org/ns/widgets&#8221;
xmlns:rim=”http://www.blackberry.com/ns/widgets&#8221;
version=”1.0.0.0″ id=”org.apache.cordova.example”>

Just Remove the id attribute from the <widget> tag, and it works!

Remove

Advertisements
Categories: Uncategorized
  1. maceto
    March 2, 2013 at 6:57 pm

    Dear Dananos,

    Thanks for useful patch.

    The mentioned problem persists in the newly released version of PhoneGap 2.5.0.

    • maceto
      March 2, 2013 at 7:03 pm

      …however this solution works for playbook and blackberry builds only. The QNX build seems to need such identifier.

  2. CarlGB
    April 13, 2013 at 10:33 pm

    I trawled around looking for a solution to this problem and couldn’t find any clue. Until I came here. I was working through the PhoneGap example build tutorial and it came up with this error. Simply (once I read your post of course) went into www directory, edited the config.xml file (not the one in the build directory as this gets overwritten obviously) and removed the id tag as you suggested. Only reiterated this in case any newbies like me had a little trouble finding which file to edit 😉

    MANY THANKS FOR POSTING.

  3. Naresh
    July 29, 2013 at 6:08 am

    Thanks you. It is helped me but I am getting following error.
    [exec] [INFO] Populating application source
    [exec] [ERROR] Feature cannot be found in any extension(blackberry.io).

    Please help me.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: