This obviously relies on you having java and android installed, which I'd guess you have if you're upgrading an Android app
Step 1Download the latest zip file from http://cordova.apache.org/ and unzip it.
Step 2Install android if necessary and add it to the OS path. You need ANDROID_HOME set or the android executable on the path. I added both.
Make sure you have Android version 19 installed from Android's SDK manager
Step 3Install ant and add it to the OS path so that ant can be executed from the command line
Step 4Using a command line tool (cmd or bash, or whatever) change directory (cd) to the where you unzipped the cordova zip and cd into the package/framework directory
Run the following command
If you get the error message that you need to create 'local.properties' run the following command first (then run ant jar)
android update project -p .
This will create the jar file called cordova-<version>.jar
Step 5Copy these files from the unzipped cordova directory into your Android app directory structure:
- the created .jar file to your /libs directory (will be in the framework directory where you created it)
- cordova.js from the assets directory in the zip file to your app assets directory
That's all I needed to do. The settings all worked as before and now I've upgraded. I hope this helps someone and it isn't just me that doesn't want to have to use the Cordova tools :)