How to change the Android version supported on play store

Please I built my app with ionic 2 and I have tested it on all versions of Android and it works very well on Android 4.4 upwards but when I uploaded it to Google Playstore the supported android version that is shown there is 4.1 upwards. People that have installed the app on Android version 4.1, 4.2 and 4.3 have been complaining that the app is not working. So please is there a way I can specify the Android version it supports maybe on the config.xml file of the app before I upload to playstore so that Playstore will use the one set in the config.xl file.

Please I need help on this as soon as possible.

1 Like

in your config.xml file change this line <uses-sdk android:minSdkVersion="4" android:target SdkVersion="15" />,

with the number of the table api level form this link:

https://developer.android.com/guide/topics/manifest/uses-sdk-element.html?hl=es

then remove android platform, add it again and rebuild

1 Like

Thanks for your response, from what I read in that link above, the targetSdkVersion mean the Android API level. And from your code , means am targeting Android 4.0.3 and above. But am actually targeting 4.4 and above so I changed it to , because SdkVersion=“19” in the Android API level stands for Android KIKKAT. Please I want to know if my code is correct before I build it and submit to Playstore.

Thanks

The code from @gerardx20 belongs in the file platforms/android/AndroidManifest.xml. But I highly recommend to not change this file. Change directly cordova’s config.xml by adding this:

<platform name="android">
    <preference name="android-minSdkVersion" value="19"/>
    <preference name="android-targetSdkVersion" value="19"/>
</platform>

This targets Android 4.4 and above.

4 Likes

@ohh2ahh is right, I just replied fast and mixed up config files, so, @kelvinrolex , change it in config.xml, as said, and it will be fine.

Oh no wonder I was having error when I tried to compile but I laterm go it right when I did a search online. Thanks for your support…

Thank you so much mate, you rock…

its works, thank you so mutch