Max Pain Max Pain - 4 months ago 26
Java Question

Android - phonegap error: Error parsing XML: unbound prefix

I restarted eclipse and the error changed to "error: Error parsing XML: unbound prefix" on the same line

I am trying to use this plugin in my android phonegap application. It is a local notification plugin. I am getting the error in my config.xml file on this line:

<gap:plugin name="de.appplant.cordova.plugin.local-notification" version="0.6.2" />

There is a similar question about this problem here, but the answer is not related to my problem.

Here is my config.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns = ""
id = ""
version = "2.0.0">


<author href="" email="">

<access origin="*"/>

<!-- <content src="xxx" /> for external pages -->
<content src="index.html" />

<preference name="loglevel" value="DEBUG" />
<preference name="splashscreen" value="resourceName" />
<preference name="backgroundColor" value="0xFFF" />
<preference name="loadUrlTimeoutValue" value="20000" />
<preference name="InAppBrowserStorageEnabled" value="true" />
<preference name="disallowOverscroll" value="true" />

<feature name="App">
<param name="android-package" value="org.apache.cordova.App"/>
<feature name="Geolocation">
<param name="android-package" value="org.apache.cordova.GeoBroker"/>
<feature name="Device">
<param name="android-package" value="org.apache.cordova.Device"/>
<feature name="Accelerometer">
<param name="android-package" value="org.apache.cordova.AccelListener"/>
<feature name="Compass">
<param name="android-package" value="org.apache.cordova.CompassListener"/>
<feature name="Media">
<param name="android-package" value="org.apache.cordova.AudioHandler"/>
<feature name="Camera">
<param name="android-package" value="org.apache.cordova.CameraLauncher"/>
<feature name="Contacts">
<param name="android-package" value="org.apache.cordova.ContactManager"/>
<feature name="File">
<param name="android-package" value="org.apache.cordova.FileUtils"/>
<feature name="NetworkStatus">
<param name="android-package" value="org.apache.cordova.NetworkManager"/>
<feature name="Notification">
<param name="android-package" value="org.apache.cordova.Notification"/>
<feature name="Storage">
<param name="android-package" value="org.apache.cordova.Storage"/>
<feature name="FileTransfer">
<param name="android-package" value="org.apache.cordova.FileTransfer"/>
<feature name="Capture">
<param name="android-package" value="org.apache.cordova.Capture"/>
<feature name="Battery">
<param name="android-package" value="org.apache.cordova.BatteryListener"/>
<feature name="SplashScreen">
<param name="android-package" value="org.apache.cordova.SplashScreen"/>
<feature name="Echo">
<param name="android-package" value="org.apache.cordova.Echo"/>
<feature name="Globalization">
<param name="android-package" value="org.apache.cordova.Globalization"/>
<feature name="InAppBrowser">
<param name="android-package" value="org.apache.cordova.InAppBrowser"/>
<!-- Deprecated plugins element. Remove in 3.0 -->

<plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
<gap:plugin name="de.appplant.cordova.plugin.local-notification" version="0.6.2" />


I am using eclipse with the adt plugin. I generated an android application and made some modification to it so it would work with phonegap (its working fine without the local notification plugin). I am using cordova 2.9.0 version.
How can I solve this problem?


You need to add a xml namespace.


Your root xml schould look like this one:

  <widget id="com.example.MyApp" 
    version="1.0.0" xmlns="" 

good luck!