3

I want to use a specific version of cordova android (lets say 6.2.2). I know it can be done by this command :

cordova add platform android@6.2.2

But I want to know if there is way to just add platform and the version to put it inside the xml.

I have seen also this question How can I specify the minimum SDK in phonegap? It is ignoring android-minsdkversion in config.xml but I cannot figure out how it can be possible

geo
  • 2,283
  • 5
  • 28
  • 46

1 Answers1

7

This is done using the <engine> tag:

<engine name="android" spec="^6.3.0" />
<engine name="ios" spec="~4.5.1" />
<engine name="browser" spec="latest" />

You can find the docs for it here.

David
  • 7,387
  • 3
  • 22
  • 39
  • what does the ^ sign mean? let's say i want to build apk to support android version 5 or higher. so what will be the spec value? – Jaowat Raihan Mar 24 '19 at 15:56
  • 1
    ^ before the version means it will update to the next minor version when available (and ~ means to the next patch version) – David Mar 24 '19 at 20:01