How can I specify the minimum SDK in phonegap? It is ignoring android-minsdkversion in config.xml

前端 未结 6 1991
北海茫月
北海茫月 2020-11-28 10:24

This is a phonegap 3.5 / cordova 3 android app. In www/config.xml I have:




        
6条回答
  •  自闭症患者
    2020-11-28 11:09

    With older version of cordova CLI, I used to modify manually AndroidManifest.xml to change a few settings (launch mode, minsdk...) like you do in your answer.

    And with Cordova 3.5.something things started to go wrong, and some changes were lost each time I built the project.

    Now I added those lines in config.xml and the settings are updated automatically :

    
        
        
        
        
        
        
        
    
    

    The advantage is that I can now delete the android platform and recreate it without loosing any setting.

    As Phonegap is being updated to be inline with cordova, preferences in config.xml should work with the new version, and maybe you will see your manual updated be lost like it happened to me...

提交回复
热议问题