When using Cordova I want to build for Android API version 23.
When I do cordova platform add android
then when I build the app by doing cordova build android
. It builds for API 25 by default.
How do I go about setting the correct api version. Also mention what is to be installed in the Android-sdk.
Thanks
How do I go about setting the correct api version
In your config.xml
, use a <preference>
to set it:
<preference name="android-targetSdkVersion" value="23" />
Also mention what is to be installed in the Android-sdk
The API 23 platform SDK needs to be installed. See the Cordova Android platform guide for more details.