0

I would like to upgrade the PhoneGap version from cli-5.2.0 to cli-6.3.0 for my hybrid app. According to the PhoneGap documentation, adding the following preference in my config.xml file should be enough; but it's not working for me.

<preference name="phonegap-version" value="cli-6.3.0"/>

When I upload my code with the updated config.xml, the build does not fail but the PhoneGap version is not updated either.

temelm
  • 826
  • 4
  • 15
  • 34
  • The documentation states that this is the new default, so you shouldn't need to use this on Build. – Subjective Effect Aug 23 '16 at 07:56
  • That's what I thought as well. I didn't have a phonegap-version preference in my config.xml initially; so I was expecting the latest version to be used in the build process but that wasn't the case. I solved it by a very 'complicated' method. I deleted my project from the PhoneGap console, re-created, and voilà, magic. – temelm Aug 23 '16 at 08:49
  • 1
    That's the standard method all PGB developers use! Haha. I was just going to suggest it. – Subjective Effect Aug 23 '16 at 08:53

3 Answers3

0

See http://phonegap.com/blog/2013/11/28/phonegap-320-released/

How to Upgrade PhoneGap

Mac and Linux:

$ sudo npm install -g phonegap

Windows:

C:> npm install -g phonegap

How to Upgrade an App

$ cd path/to/my-app

$ phonegap platform update android

You can substitute android for any platform name.

Naitik
  • 1,455
  • 15
  • 26
0

I haven't been able to figure out what the actual issue is. The documentation says that cli-6.3.0 is the new default. Long story short, I deleted my project from the PhoneGap console and re-created it. It works now.

temelm
  • 826
  • 4
  • 15
  • 34
-2

Open up your command prompt and execute:

npm update -g cordova

or

npm install -g cordova@6.3.0

Next time first check the documentation of the provider.

GOSCHEN
  • 454
  • 4
  • 16
  • 1
    Next time first read the title and the description more carefully. I never said I was using Apache Cordova. I'm using PhoneGap which is just a distribution of Cordova. So I don't even have Cordova installed on my computer; the build process is done in the cloud. – temelm Aug 22 '16 at 16:27