I want add android platform on cordova using specific version: android-10. I use 'gulp' with 'gulp-shell' to create cordova env, so it must be repeatable in command line for CI and CD.
Today when I run:
$ cordova platforms add android
It create in platforms/android/AndroidManifest.xml
file :
android:minSdkVersion="10" android:targetSdkVersion="19"
I want android:minSdkVersion="14" android:targetSdkVersion="19"
Short version, use the npm install cordova@[version] command to install cordova in the current directory, and use the cordova command in node_modules/cordova/bin for all your project commands. To find out the available versions of cordova, run npm view cordova .
Try to check here what is the list of Android Platforms => Cordova Android Platforms
and try to use:
cordova platform add [email protected]
replacing x.x.x with the version that you need
A list of released version can be found on github.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With