安卓:使用-SDK的minSdkVersion通过Play商店被忽略? [英] Android: uses-sdk minSdkVersion being ignored by Play Store?

查看:289
本文介绍了安卓:使用-SDK的minSdkVersion通过Play商店被忽略?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立了一个非常简单的应用程序,包括约六项活动为显示在会议活动的详细信息。没有太多吧。

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.

不过,我知道,应用程序不运行任何东西比Android 4.0.3降低设备很好地工作。我设置的minSdkVersion为15和targetSdkVersion为18,但是当我上传APK Play商店,它告诉我,它会在7以上任何运行。

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.

有没有办法,我失踪,限制应用程序仅在4.0.3及以上?运行的东西。

Is there something that I'm missing to restrict the app to run only on 4.0.3 and above?

推荐答案

由于在Google+上一个提示,看来我找到了解决办法。在的build.gradle文件,和的minSdkVersion的targetSdkVersion值可以被覆盖。我假设该文件是基于清单生成的,并且有Android Studio中一个错误,在这里将不正确的值。这仅仅是一种假设

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.

下图显示的是什么文件的build.gradle就像之前我改变它,是什么样子后,我改变了它,什么开发者控制台显示了这个新的apk我上传后。

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.



这篇关于安卓:使用-SDK的minSdkVersion通过Play商店被忽略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆