Phonegap Build how to change Cordova version

Asked

Viewed 987 times

0

When publishing my application on google play the same was rejected, the reason was this:

Security alert We would like to inform you that your app was created in a version of Apache Cordova that contains security vulnerabilities. You need to migrate the app to version 3.5.1 or later of Apache Cordova as soon as possible. As of 08/31/2015, Google Play will block the publication of new apps and updates using versions of Apache Cordova prior to 3.5.1.

I wonder if it is possible to change my version of Cordova, or what I could do to remedy this problem.

2 answers

2


Yes, just update the version of your Cordova. Actually you are using the right Phonegap? I recommend you create your projects via command line, in my opinion it is better. Install Node.js and then just run this command:

npm install -g phonegap

For more details you can see the documentation here: http://phonegap.com/install/

After doing this process just copy your files to the new folder.

  • I used phonegap to "create" my application, but still keep telling me the same problem, phonegap is in version 5.3.6

  • But you created the project again? it is necessary to update, and create a project again, after that just copy the WWW files of your old project and play in the new...

  • To compile . apk, is phonegap possible? or do I have to build?

  • I believe so, particularly I use the Cordova and do everything by line command, my opinion is much better. If you want to take a look I made a post explaining the use of Cordova: http://phpiando.com.br/criando-um-projeto-cordova-cli/

  • I appreciate the tips, thanks to your help I could identify the error, the same was found in the file Cordova.js, which in general is automatically generated by PGB.

1

I advise that in addition to installing phonegap you also install npm install -g Cordova if you are building locally.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.