错误 - 如果使用PhoneGap> = 4.0.0,则必须更新某些官方插件。请升级可能包含以下文件的任何插件的版本:FileTransfer.java - 您可以在此处修复此问题
当我尝试在build.phonegap.com上为Android构建我的应用时,我突然遇到此错误。我的备份也没有任何工作,尽管在iOS中一切正常。我已经尝试将source="npm"
添加到我的所有插件中,但它也不起作用(它构建但所有CSS都搞砸了)。我使用的唯一插件是Facebook API,其余的都是默认的。我真的需要帮助,我的应用程序已经完成,我的客户端已经疯了,因为这个应用程序应该在下周发布。这是我的config.xml
:
<?XML version='1.0' Encoding='utf-8'?>
<Widget id="com.phonegap.eventsrelease" version="1.0.0" Xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<name></name>
<description>
</description>
<author email="hcorazao@gmail.com">
</author>
<content src="index.html" />
<preference name="permissions" value="none"/>
<preference name="orientation" value="default"/>
<preference name="target-device" value="universal"/>
<preference name="fullscreen" value="true"/>
<preference name="webviewbounce" value="true"/>
<preference name="prerendered-icon" value="true"/>
<preference name="stay-in-webview" value="false"/>
<preference name="ios-statusbarstyle" value="black-opaque"/>
<preference name="detect-data-types" value="true"/>
<preference name="exit-on-suspend" value="false"/>
<preference name="show-splash-screen-spinner" value="true"/>
<preference name="auto-hide-splash-screen" value="true"/>
<preference name="disable-cursor" value="false"/>
<preference name="android-minSdkVersion" value="7"/>
<preference name="android-installLocation" value="auto"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="Fullscreen" value="false"/>
<!--preference name="StatusBarOverlaysWebView" value="false" /-->
<gap:plugin name="org.apache.cordova.battery-status"/>
<gap:plugin name="org.apache.cordova.camera"/>
<gap:plugin name="org.apache.cordova.media-capture"/>
<gap:plugin name="org.apache.cordova.console"/>
<gap:plugin name="org.apache.cordova.contacts"/>
<gap:plugin name="org.apache.cordova.device"/>
<gap:plugin name="org.apache.cordova.device-motion"/>
<gap:plugin name="org.apache.cordova.device-orientation"/>
<gap:plugin name="org.apache.cordova.dialogs"/>
<gap:plugin name="org.apache.cordova.file"/>
<gap:plugin name="org.apache.cordova.file-transfer"/>
<gap:plugin name="org.apache.cordova.geolocation"/>
<gap:plugin name="org.apache.cordova.globalization"/>
<gap:plugin name="org.apache.cordova.inappbrowser"/>
<gap:plugin name="org.apache.cordova.media"/>
<gap:plugin name="org.apache.cordova.network-information"/>
<gap:plugin name="org.apache.cordova.splashscreen"/>
<gap:plugin name="org.apache.cordova.vibration"/>
<!-- If you're using PhoneGap Build -->
<feature name="org.apache.cordova.facebook.Connect">
<param name="android-package" value="org.apache.cordova.facebook.ConnectPlugin"/>
</feature>
<!-- The Params name are changed for this forum-->
<gap:plugin name="com.phonegap.plugins.facebookconnect" version="0.9.0">
<param name="APP_ID" value="xxxxxxxxxxxx" />
<param name="APP_NAME" value="xxxxxx" />
</gap:plugin>
<icon src="icon.png" />
<icon gap:platform="android" gap:qualifier="ldpi" src="www/res/icon/android/icon-36-ldpi.png" />
<icon gap:platform="android" gap:qualifier="mdpi" src="www/res/icon/android/icon-48-mdpi.png" />
<icon gap:platform="android" gap:qualifier="hdpi" src="www/res/icon/android/icon-72-hdpi.png" />
<icon gap:platform="android" gap:qualifier="xhdpi" src="www/res/icon/android/icon-96-xhdpi.png" />
<icon gap:platform="blackberry" src="www/res/icon/blackberry/icon-80.png" />
<icon gap:platform="blackberry" gap:state="hover" src="www/res/icon/blackberry/icon-80.png" />
<icon gap:platform="ios" height="57" src="www/res/icon/ios/icon-57.png" width="57" />
<icon gap:platform="ios" height="72" src="www/res/icon/ios/icon-72.png" width="72" />
<icon gap:platform="ios" height="114" src="www/res/icon/ios/icon-57-2x.png" width="114" />
<icon gap:platform="ios" height="144" src="www/res/icon/ios/icon-72-2x.png" width="144" />
<icon gap:platform="webos" src="www/res/icon/webos/icon-64.png" />
<icon gap:platform="winphone" src="www/res/icon/windows-phone/icon-48.png" />
<icon gap:platform="winphone" gap:role="background" src="www/res/icon/windows-phone/icon-173-tile.png" />
<!--gap:splash gap:platform="android" gap:qualifier="port-ldpi" src="www/res/screen/android/splash_image.jpg" />
<gap:splash gap:platform="android" gap:qualifier="port-mdpi" src="www/res/screen/android/splash_image.jpg" />
<gap:splash gap:platform="android" gap:qualifier="port-hdpi" src="www/res/screen/android/splash_image.jpg" />
<gap:splash gap:platform="android" gap:qualifier="port-xhdpi" src="www/res/screen/android/splash_image.jpg" />
<gap:splash gap:platform="blackberry" src="www/res/screen/blackberry/splash_image.jpg" />
<gap:splash gap:platform="ios" height="480" src="www/res/screen/ios/splash_image.jpg" width="320" />
<gap:splash gap:platform="ios" height="960" src="www/res/screen/ios/splash_image.jpg" width="640" />
<gap:splash gap:platform="ios" height="1136" src="www/res/screen/ios/splash_image.jpg" width="640" />
<gap:splash gap:platform="ios" height="1024" src="www/res/screen/ios/splash_image.jpg" width="768" />
<gap:splash gap:platform="ios" height="768" src="www/res/screen/ios/splash_image.jpg" width="1024" />
<gap:splash gap:platform="winphone" src="www/res/screen/windows-phone/splash_image.jpg" /-->
<platform name="ios">
<splash src="res/screen/ios/splash_image.png" width="320" height="480"/>
<splash src="res/screen/ios/splash_image.png" width="640" height="960"/>
<splash src="res/screen/ios/splash_image.png" width="768" height="1024"/>
<splash src="res/screen/ios/splash_image.png" width="1536" height="2048"/>
<splash src="res/screen/ios/splash_image.png" width="1024" height="768"/>
<splash src="res/screen/ios/splash_image.png" width="2048" height="1536"/>
<splash src="res/screen/ios/splash_image.png" width="640" height="1136"/>
<splash src="res/screen/ios/splash_image.png" width="750" height="1334"/>
<splash src="res/screen/ios/splash_image.png" width="1242" height="2208"/>
<splash src="res/screen/ios/splash_image.png" width="2208" height="1242"/>
</platform>
<platform name="android">
<splash src="res/screen/ios/splash_image.png" density="land-hdpi"/>
<splash src="res/screen/ios/splash_image.png" density="land-ldpi"/>
<splash src="res/screen/ios/splash_image.png" density="land-mdpi"/>
<splash src="res/screen/ios/splash_image.png" density="land-xhdpi"/>
<splash src="res/screen/ios/splash_image.png" density="port-hdpi"/>
<splash src="res/screen/ios/splash_image.png" density="port-ldpi"/>
<splash src="res/screen/ios/splash_image.png" density="port-mdpi"/>
<splash src="res/screen/ios/splash_image.png" density="port-xhdpi"/>
</platform>
<access origin="*" />
</widget>
答案 0 :(得分:0)
我无法让Phonegap Build在4.0.0以上工作,直到我经历了查找所有NPM软件包名称的艰苦过程并将其转换为:
<gap:plugin name="cordova-plugin-file" source="npm" />
<gap:plugin name="cordova-plugin-file-transfer" source="npm" />
我建议你尝试做同样的事情,看看是否允许你的项目再次构建和正常工作。
答案 1 :(得分:0)
当我使用这种语法时,我的插件再次开始工作(我以前没有指定版本log4j1.4.jar and log4j1.5.jar
):
source="npm"
一旦我指定了版本类型,错误就消失了。