Upgrading Android

Upgrading Android

This guide shows how to modify Android projects to upgrade from older versions of Cordova. Most of these instructions apply to projects created with an older set of command-line tools that precede the cordova CLI utility. See The Command-Line Interface for information how to update the version of the CLI.

Upgrading to 5.X.X

The best way to upgrade to 5.X.X is to simply remove the Android platform from your project and re-add it with the new version. For example,

cordova platform remove android
cordova platform add android@5.X.X

If you use the above method, be aware that any changes you made to the android platform folder will be lost (editing the contents of this folder is discouraged).

Alternatively, you may attempt to use the platform update script. For non-CLI projects, run:

<