-
Notifications
You must be signed in to change notification settings - Fork 18
'tools' namespace must be added to widget element #4
Comments
I have the
|
Ah.. didn't know you could do that. Yeah, that would be even better! |
Actually, thinking about it, this would add the entry to |
On testing, it is actually the |
I guess the namespaces on the widget in config.xml get added to the AndroidManifest.xml, but it's strange that when I try to build the project I get the error message as a line number on the config.xml instead of the manifest. I suppose it does a namespace check on the config.xml first. |
I'm submitting a ... (check one with "x"):
Bug report
When adding this plugin from a default Phonegap config.xml you get an error saying
error: unbound prefix.
. The issue (I think) is the plugin.xml has the following code:It is using a
tools
prefix, but that needs to be added to the<widget>
as a valid attribute namespace for it to work properly.The default phonegap widget element looks like this:
<widget id="com.myapp" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
It needs to have the
tools
prefix defined soxmlns:tools="http://schemas.android.com/tools"
must be added to make it<widget id="com.myapp" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" xmlns:tools="http://schemas.android.com/tools">
.I'm not sure the default in Cordova, but it should be mentioned somewhere in the docs that
xmlns:tools="http://schemas.android.com/tools"
must be contained in the widget definition for this plugin to work.The text was updated successfully, but these errors were encountered: