Android platform - how is version chosen?

When adding the android platform via ionic cordova platform add android, I get version 6.1.2 of cordova-android installed. What controls that version? Is that the recommended version from Ionic for some reason? Or is that tied to the Cordova CLI version?

I’d like to upgrade because some plugins won’t let me install them unless I’m on >=6.3.0. My Ionic Info is below:

cli packages:

@ionic/cli-utils  : 1.18.0
ionic (Ionic CLI) : 3.18.0

global packages:

cordova (Cordova CLI) : 6.5.0

local packages:

@ionic/app-scripts : 3.0.1
Cordova Platforms  : android 6.1.2
Ionic Framework    : ionic-angular 3.8.0


Android SDK Tools : 25.2.5
Node              : v6.11.1
npm               : 3.10.10
OS                : Windows 10

My understanding is that the version is tied with cordova (or npm under?) and that they set a stable release tag or something.

When running the cmd you could, like for npm, define precisely which version you would like to install


ionic cordova platform add android@latest


ionic cordova platform add android@6.3.0

Looks like you’re right @reedrichards. I upgraded the cordova CLI, and that pulled in a new cordova-android version when I added the android platform.

1 Like

I want to add ionic Cordova platform add android 6.3.0 Version without adding @6.3.0 at the end of command.