Latest version of cordova-android Ionic

Hi ! :slight_smile:

Why Ionic didn’t install the lastest version of cordova-android please ?

Maybe you can find your answer in the following post:

Ionic never installs cordova-android. If anything, it was cordova that was called by ionic. If your Cordova CLI is out of date, it will also install outdated versions of the platforms.

But you didn’t tell us anything relevant - what version was installed? What is your ionic info output?

1 Like

Thank for you answer. When I do ionic cordova platform add android, he installs 6.2.3 but they are many new version so I don’t understand why he installed this version…

This is my ionic -info
cli packages: (C:\Users\vince\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1

global packages:

cordova (Cordova CLI) : 7.0.1

local packages:

@ionic/app-scripts : 3.1.6
Cordova Platforms  : android 6.3.0
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
Node              : v8.9.4
npm               : 5.6.0
OS                : Windows 10

Environment Variables:

ANDROID_HOME : C:\Users\vince\AppData\Local\Android\sdk

Misc:

backend : legacy

Because you are using an old Cordova CLI.

1 Like

Oh thanks ! How Can I update that please ?

Uninstall, then install again.
npm uninstall -g cordova
npm install -g cordova

2 Likes