Error - Some official plugins have to be updated if using PhoneGap >= 4.0.0

  • 1
  • Question
  • Updated 4 years ago
  • Answered
SO I followed this blog post from here, in order to gegt my app on the latest cordova version and to try out crosswalk:

http://phonegap.com/blog/2015/06/16/p...

and I get this error when i go to build:

Error - Some official plugins have to be updated if using PhoneGap >= 4.0.0. Please upgrade the version of any plugins that may include the following file: FileTransfer.java - You can fix this here

My App ID is: 1536482
Photo of searayman

searayman

  • 23 Posts
  • 1 Reply Like

Posted 5 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Well, did you replace all plugins by their latest npm-version?
And have you had a look at http://community.phonegap.com/nitobi/...
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@searayman,
You should also read:

Top Mistakes by Developers new to Cordova/Phonegap
https://github.com/jessemonroy650/top-phonegap-mistakes/blob/master/new-to-Phonegap.md
Read #1, #6, #7, & #10

Jesse
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
About #6, which says "With the CLI version, if you do not assign a version for your platform OR in ''Phonegap Build'' if you do not set the phonegap-version in config.xml, YOU WILL GET THE LATEST VERSION. ":
This is not correct. You will get the default version, as set by the PGB devs. Currently, that's 3.7.0, although cli-5.1.1 is officially the latest version, and cli-5.2.0 unofficially already availale.
Photo of bill p

bill p

  • 53 Posts
  • 0 Reply Likes
I updated the plugin based on the link and the suggestion and got: plugin unsupported: org.apache.cordova.inappbrowser @ 1.0.1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Well, did you replace all plugins by their latest npm-version?
So, you didn't.
Use the latest inappbrowser from npm. Be aware, that the open() call is different, now.
Photo of Ashwin Bhayal

Ashwin Bhayal

  • 17 Posts
  • 2 Reply Likes
Hi All,

I have resolved problem
Please use below code in config.xml file

gap:plugin name="org.apache.cordova.battery-status" source="npm" />
gap:plugin name="org.apache.cordova.camera" source="npm" />
gap:plugin name="org.apache.cordova.media-capture" source="npm" />
gap:plugin name="org.apache.cordova.console" source="npm" />
gap:plugin name="org.apache.cordova.contacts" source="npm"/>
gap:plugin name="org.apache.cordova.device" source="npm"/>
gap:plugin name="org.apache.cordova.device-motion" source="npm"/>
gap:plugin name="org.apache.cordova.device-orientation" source="npm"/>
gap:plugin name="org.apache.cordova.dialogs" source="npm"/>
gap:plugin name="org.apache.cordova.file" source="npm" />
gap:plugin name="org.apache.cordova.file-transfer" source="npm"/>
gap:plugin name="org.apache.cordova.geolocation" source="npm"/>
gap:plugin name="org.apache.cordova.globalization" source="npm"/>
gap:plugin name="org.apache.cordova.inappbrowser" source="npm"/>
gap:plugin name="org.apache.cordova.media" source="npm" />
gap:plugin name="org.apache.cordova.network-information" source="npm" />
gap:plugin name="org.apache.cordova.splashscreen" source="npm"/>
gap:plugin name="org.apache.cordova.vibration" source="npm" />

(i have removed the < at the start so they display here) third party plugins like Google connect dont need it.
Photo of Sanjeev Gehlot

Sanjeev Gehlot

  • 1 Post
  • 0 Reply Likes
Great, Thanks
Photo of dar al handasah

dar al handasah

  • 1 Post
  • 0 Reply Likes
Hello I just created an application using:
cordova create hello com.example.hello HelloWorld
and did nothing to it just zipped it as is and uploaded it to my app on https://build.phonegap.com/

and it gave me the same error:
Error - Some official plugins have to be updated if using PhoneGap >= 4.0.0. Please upgrade the version of any plugins that may include the following file: CraftARCordovaActivity.java - You can fix this here
and when I click on the "here" it takes me to http://cordova.apache.org/plugins/

the thing is I have no plugins installed.
I also tried adding ios and android platforms but same error remains

please help
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Your directory structure and config are probably both wrong.
The default HelloWorld project is intended to be a template for local builds, not for Phonegap Build.

PGB expects your index.html and config.xml in the root of your zip file.