Compile to a lower platform using the latest API?

Asked

Viewed 46 times

2

I am using Cordova in Visual Studio 2017, and installed the Android SDK (API level 23), but I wonder if when compiling using this API, the application will be compatible with previous versions, such as Android 4.2 for example.

As far as I know, I am not using any API 23-specific features.

1 answer

2


To set the minimum SDK version, you need to enter the Cordova settings and specify the level value you want to use. Check the file config.xml located at the root of your project. See below how it should look if you want it to be compatible with Android 4.2, which in this case is API Level 17:

<preference name="android-minSdkVersion" value="17" />

See more details in the documentation.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.