以下 config.xml 会导致错误:
<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="LogIn" version="1.0.1" versionCode="10" >
<name>...</name>
<description>...</description>
<author >...</author>
<preference name="phonegap-version" value= "3.5.0" />
<preference name="orientation" value= "default" />
<preference name="target-device" value= "universal" />
<preference name="fullscreen" value= "true" />
<preference name="webviewbounce" value= "true" />
<preference name="android-installLocation" value= "internalOnly" />
<preference name="splash-screen-duration" value= "0" />
<preference name="load-url-timeout" value= "20000" />
<access origin="*" />
<feature name="http://api.phonegap.com/1.0/notification" />
<feature name="http://api.phonegap.com/1.0/file" />
<feature name="http://api.phonegap.com/1.0/media" />
<feature name="http://api.phonegap.com/1.0/battery" />
<feature name="http://api.phonegap.com/1.0/camera" />
<feature name="http://api.phonegap.com/1.0/contacts" />
<feature name="http://api.phonegap.com/1.0/geolocation" />
<feature name="http://api.phonegap.com/1.0/network" />
<gap:plugin name="org.apache.cordova.dialogs" ></gap:plugin>
<gap:plugin name="org.apache.cordova.device" ></gap:plugin>
<gap:plugin name="org.apache.cordova.device-orientation" ></gap:plugin>
<gap:plugin name="org.apache.cordova.splashscreen" ></gap:plugin>
<gap:plugin name="org.apache.cordova.camera" ></gap:plugin>
<gap:plugin name="org.apache.cordova.device-motion" ></gap:plugin>
<gap:plugin name="org.apache.cordova.network-information" ></gap:plugin>
<gap:plugin name="org.apache.cordova.battery-status" ></gap:plugin>
<gap:plugin name="org.apache.cordova.vibration" ></gap:plugin>
<gap:plugin name="org.apache.cordova.geolocation" ></gap:plugin>
<gap:plugin name="org.apache.cordova.globalization" ></gap:plugin>
<gap:plugin name="org.apache.cordova.file" ></gap:plugin>
<gap:plugin name="org.apache.cordova.inappbrowser" ></gap:plugin>
<gap:plugin name="org.apache.cordova.media" ></gap:plugin>
<gap:plugin name="org.apache.cordova.media-capture" ></gap:plugin>
<gap:plugin name="org.apache.cordova.contacts" ></gap:plugin>
<gap:plugin name="org.apache.cordova.file-transfer" version="0.4.3" ></gap:plugin>
<plugin name="cordova-plugin-file-opener2" source="npm" />
</widget>
错误信息:
代码库是继承的,据我所知,用于正确编译的配置。删除错误中的插件会导致列表中的以下插件出现在错误中。
改变
<preference name="phonegap-version" value= "3.5.0" />
至
<preference name="phonegap-version" value= "3.7.0" />
并格式化插件
<gap:plugin name="org.apache.cordova.dialogs" ></gap:plugin>
至
<gap:plugin name="org.apache.cordova.dialogs" source="npm" ></gap:plugin>
似乎允许它构建,但插件在应用程序中不起作用。
任何和所有的帮助或建议将不胜感激。