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”
xmlns:rim=”http://www.blackberry.com/ns/widgets”
version=”1.0.0.0″ id=”org.apache.cordova.example”>
Just Remove the id attribute from the <widget> tag, and it works!
Remove
Dear Dananos,
Thanks for useful patch.
The mentioned problem persists in the newly released version of PhoneGap 2.5.0.
LikeLike
…however this solution works for playbook and blackberry builds only. The QNX build seems to need such identifier.
LikeLike
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.
LikeLike
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.
LikeLike