Setting Android Target SDK in Cordova

Since August this year, all new apps on Google Play must target at least Android 8.0 (API level 26) when they are built. From November this year, all app updates must be the same. By default, the current version of Cordova (version 8) targets Android API level 23. Until the next release comes out, developers will need to manually set the target SDK version.

Luckily this is easy to do. Just add the following line inside your <platform name="android"> tag.

<preference name="android-targetSdkVersion" value="26" />