Prior to developing an application, it is crucial to evaluate the possibility of downgrading your cordova
version. Understanding your target audience is essential (what Android versions are they using? Is it necessary to cater to Android 4 users?) Installing the most recent cordova version without consideration can lead to unforeseen issues.
cordova-android Version Supported Android API-Levels Equivalent Android Version
6.X.X 16 - 25 4.1 - 7.1.1
5.X.X 14 - 23 4.0 - 6.0.1
4.1.X 14 - 22 4.0 - 5.1
4.0.X 10 - 22 2.3.3 - 5.1
3.7.X 10 - 21 2.3.3 - 5.0.2
If your aim is to support Android 4.0, consider installing cordova 5.x.x. Execute the following command
$ npm i -g <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="096a667b6d667f68493c273d2738">[email protected]</a>
and then add the platform by running this command
$ cordova platform add <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="98f9f6fceaf7f1fcd8acb6a8">[email protected]</a>