My project was built when Cordova 3.5.0 was out. Cordova 3.6.0 is out now.
How do I upgrade Cordova in my project?
I already did "npm -g update cordova" but that does not seem to be the version CTP uses.
For CTP 2.0 you can edit the file platforms.js in %APPDATA%\Roaming\npm\node_modules\vs-mda\node_modules\cordova\node_modules\cordova-lib\src\cordova\platforms.js and update the versions of Cordova that should be used for each platform. You should check the github URLS listed in the file to see what versions are available and update the 'version:' elements as needed.
Using this method I changed the android section of platforms.js from :
'android' : {
parser : './metadata/android_parser',
url : 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git',
version: '3.5.0'
},
to:
'android' : {
parser : './metadata/android_parser',
url : 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git',
version: '3.5.1'
},
After editing delete the contents of the bld directory belonging to your project. Start VS, load your project and perform a clean and then a build. You can check the build output and verify that it downloads the new version of Cordova to use during the build process.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments