Upgrade to phonegap 3.3.0

后端 未结 3 547
执笔经年
执笔经年 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:18

    By the way, after having resolved this issue... I tried whether a complete new checkout for my phonegap project works in a complete new and fresh folder.

    And therfore I used a little bash file that did this: (to run after the git clone command in the folder you just cloned):

    • unistall all plugins... (I copied the output of list and add phonegap plugin remove)
    • install all plugins ...
    • phonegap run android

    and frustrated got the same message again....

    than I found a blog of one of the phonegap hero's: http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/

    And one remark especially: he created a hook for installing the plugins... but the hook is:

    after_platform_add`

    which means my order was wrong.... after the checkout, no platform is added, this is done in:

    phonegap run android after 
    

    So installing the plugins before the platform is added... seems not to work!

    I inserted a command to build (which also adds the platform) before installing the plugin in my bash file, and now it works.

    but even better: use the hook suggested by Holly Schinsky in the link above... this works for all platforms, and not just on ubuntu (my bash file).

提交回复
热议问题