I am learning Cordova by going through the docs and many blogs. I am able to create the basic skeleton of the Cordova app using cordova create
, and can add the platform using cordova platform add android
.
But I want to know how can I add the platform so that the apps I build will require API level 22 and above (i.e. API level not below 22)?
Add the following lines to config.xml
:
<preference name="android-minSdkVersion" value="22" />
<preference name="android-targetSdkVersion" value="22" />