Reputation: 1242
every body.
I have issue when trying to upgrade Phonegap project from Cordova 2.8 to Cordova 3.2.
Here are all steps I do:
Download Cordova 3.2.0 from http://archive.apache.org/dist/cordova/cordova-3.2.0-src.zip
Extract and create project C:\cordova-3.2.0\cordova-android\bin\create C:\test com.example.test Test
Then I copy and overwrite all file on assets/www from old project to the new one. But replace file cordova-2.8.0.js with the new one (cordova-3.2.0.js)
Import project to Eclipse
Edit res/xml/config.xml and AndroidManifest.xml as the old project
Build and run on device
==> When running on device, it not work, just show the blank page. I noticed that the old cordova-2.8.0.js has more function than cordova-3.2.0.js, may be the root cause error from here.
Could any one tell me what wrong here, and show me how to fix it. Thank you.
Upvotes: 0
Views: 1182
Reputation: 7641
Since Cordova 3.0 plugins are separated from cordova code and should be added to the project via CLI as described in the Command-Line interface article, for instance:
$ cordova plugin add org.apache.cordova.device-motion
$ cordova plugin add org.apache.cordova.device-orientation
$ cordova plugin add org.apache.cordova.geolocation
I think CLI usage is more correct way to migrate Cordova from 2.X to 3.X: create a new project via Cordova CLI and copy your content into newly created project.
Upvotes: 1