Build Ionic app for older version of Android

Asked

Viewed 447 times

2

I made an app with Ionic, and when climbing to the play store, it was enabled to Androids > 4.1 , except that the app is very simple, practically only query the database. Can anyone tell me if have how to compile it for an earlier version of android ???

1 answer

1

Log in to the main folder of the project.

Go to the file config.xml. You will find these two lines:

<preference name="android-minSdkVersion" value="15"/>
<preference name="android-maxSdkVersion" value="23"/>
<preference name="android-targetSdkVersion" value="23"/>

In minSdkVersion you choose the minimum version number that is equivalent to Android version.

In minSdkVersion you choose the maximum version number that is equivalent to Android version.

In targetSdkVersion you choose the version number you want to compile the application.

To find out which number enter the site below and see the list:

https://developer.android.com/guide/topics/manifest/uses-sdk-element.html

Then it’s just build again.

Browser other questions tagged

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