If I add a plugin to the config.xml and upload my project, the config appears to be malformed.
<?xml version='1.0' encoding='utf-8'?>
<widget
id="com.example.app"
version="0.0.1"
xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0"
>
<name>App</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Me
</author>
<content src="index.html" />
<access origin="*" />
<preference name="phonegap-version" value="3.0.0" />
<gap:plugin name="org.apache.cordova.file" />
</widget>
The phonegap instructions tell me to add this line into my config.xml:
<gap:plugin name="org.apache.cordova.file" />
Everytime I try to upload it, it becomes malformed.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…