How to check cordova android version of a cordova/phonegap project?

前端 未结 8 1256
星月不相逢
星月不相逢 2021-01-30 07:55

I have received a Security Alert from Google this week that tells me to upgrade my android version of cordova app. The email from google is as below -

This i

相关标签:
8条回答
  • 2021-01-30 08:55

    Run

    cordova -v 
    

    to see the currently running version. Run the npm info command

    npm info cordova
    

    for a longer listing that includes the current version along with other available version numbers

    0 讨论(0)
  • 2021-01-30 08:59

    The current platform version of a cordova app can be checked by the following command

    cordova platform version android
    

    And can be upgraded using the command

    cordova platform update android
    

    You can replace android by any of your platform choice like "ios" or some else.

    This only applies to android platform. I have not checked. You can try replacing android in the code segments to try for other platforms.

    0 讨论(0)
提交回复
热议问题