# Set 'Requires Android' version in Play Store

**URL:** <https://forum.ionicframework.com/t/set-requires-android-version-in-play-store/157434>\
**Category:** Ionic Framework\
**Created:** [February 25, 2019, 9:53am UTC](https://forum.ionicframework.com/t/set-requires-android-version-in-play-store/157434 "2019-02-25T09:53:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dovel](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dovel/32/127722_2.png) [@Dovel](https://forum.ionicframework.com/u/Dovel)\
**Post date:** [February 25, 2019, 9:53am UTC](https://forum.ionicframework.com/t/set-requires-android-version-in-play-store/157434/1 "2019-02-25T09:53:22Z")

</div>

How to set the `Requires Android` version in Play Store? It is always 4.4 for all Ionic Cordova Android Apps.  
 ![requires-android-version-play-store](https://global.discourse-cdn.com/ionicframework/original/3X/d/e/de609e68986a8f5450bafd1bab7353c90ea4b3a5.png)

The preference `android-minSdkVersion` in `config.xml` is set to 22 (Android 5.1). Also `android-targetSdkVersion` has no effect. And I found nothing in the developer section of Play Store.

---

<div class="post-metadata">

**Author:** ![Dovel](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dovel/32/127722_2.png) [@Dovel](https://forum.ionicframework.com/u/Dovel)\
**Post date:** [February 27, 2019, 7:02am UTC](https://forum.ionicframework.com/t/set-requires-android-version-in-play-store/157434/2 "2019-02-27T07:02:30Z")

</div>

Cordova does not use/respect the `minSdkVersion` of the `config.xml` correctly.

Workaround:  
Go to the directory `platforms/android` and replace the `defaultMinSdkVersion` property value of `build.gradle`. That’s it.

The platforms directory is untracked by default (gitignore). It’s recommended. No problem. You can replace this value by a build / task tool e.g. Jenkins. Or just place an additional gradle file `build-extras.gradle` into this folder to overwrite some values.

# Update

Cordova Android 8.0.0 fixed this issue. Now `minSdkVersion` of config.xml is respected. See [Release Notes](https://github.com/apache/cordova-android/commit/96975504885a8cf98e251c37b64921337f32c194#diff-c162d66bb4a22683316f0fc47e104078R25)
