I built a very simple app that consists of about six activities for showing the details of events at a conference. There's not much to it.
However, I know that the app doesn't work well on devices running anything lower than Android 4.0.3. I set the minSdkVersion to "15" and the targetSdkVersion to "18", but when I upload the apk to the Play Store, it tells me that it will run on anything above 7.
Is there something that I'm missing to restrict the app to run only on 4.0.3 and above?
Thanks to a tip on Google+, it appears I found the solution. In the build.gradle file, the values for minSdkVersion and targetSdkVersion can be overridden. I'm assuming that this file is generated based on the manifest, and there's a bug in Android Studio that was putting incorrect values here. This is only an assumption.
The following images show what the build.gradle file was like before I altered it, what it looked like after I altered it, and what the Developer Console shows for this new apk after I uploaded it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With