Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'cordova add platform android' with specific version

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"

like image 689
chucre Avatar asked Jul 11 '14 13:07

chucre


People also ask

How do I install a specific version of cordova?

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 .


1 Answers

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.

like image 55
MeV Avatar answered Sep 25 '22 02:09

MeV