phonegap 3.0 wants android 17, but I want android 18

后端 未结 11 988
南笙
南笙 2020-12-24 15:29

While experienced with phonegap and xcode, I\'m new to android. I have installed phonegap 3.0 ...

npm install phonegap
phonegap --version
3.0.0-0.14.3
         


        
11条回答
  •  执笔经年
    2020-12-24 16:04

    Make sure you have the latest version:

    • PhoneGap: sudo npm update -g phonegap
    • Android SDK: depending on how you installed it, if you did it through brew: brew update android-sdk

    Then run aandroid, and download the latest API.

    Then PhoneGap will use the latest API by default when running phonegap build android.

    If you need to update a current project, run inside the project folder:

    phonegap platform update android
    

    And now if you run build again, it should use the latest version.

提交回复
热议问题