Upgrade to phonegap 3.3.0

后端 未结 3 546
执笔经年
执笔经年 2020-12-19 03:49

I Am upgrading my phonegap project(s) from phonegap 2.9.0 to the latest one, phonegap 3.3.0. Because it has a lot of big improvements.

It\'s about an android project

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-19 04:02

    Because it kept complaining about the classes not being found, I suspected this was about the plugin classes. So I removed them all and reisntalled them, now it's working.

    Remove all plugins and reinstall them

    phonegap plugin list
    
    [phonegap] org.apache.cordova.camera
    [phonegap] org.apache.cordova.console 
    [phonegap] org.apache.cordova.device
    [phonegap] org.apache.cordova.device-motion
    [phonegap] org.apache.cordova.device-orientation
    [phonegap] org.apache.cordova.dialogs 
    [phonegap] org.apache.cordova.file 
    [phonegap] org.apache.cordova.file-transfer 
    [phonegap] org.apache.cordova.geolocation 
    [phonegap] org.apache.cordova.inappbrowser    
    [phonegap] org.apache.cordova.media 
    [phonegap] org.apache.cordova.media-capture
    [phonegap] org.apache.cordova.network-information
    [phonegap] org.apache.cordova.splashscreen
    
    phonegap plugin help
    

    for all installs I did this (I couldnot find a * to deinstall them all at once)

    phonegap plugin remove org.apache.cordova.device
    

    and after that I reinstalled them, so for all plugins:

    phonegap plugin add org.apache.cordova.device
    

    This did the trick for me....

    Edit

    By the way, a few days later I found out that in case you run things in eclipse. You should add 2 projects. One of the complete project (as a general project, not android). There you can edit the code in the blue print WWW folder. And after editing, you run the cli (command line interface) command: 'cordova build' and than you can run it from the second project (you add the platforms/android folder as a android project, using add from existing code).

提交回复
热议问题