Android 应用程序版本 - 最低 SDK 版本
我看过 http://developer.android.com/resources/dashboard/ platform-versions.html
2.1 : 27.2%
2.2 : 63.9%
2.3 : 0.8%
2.3.3 : 1.7%
3.0 : 0.2%
我很确定我会使用 Android 2.1 作为我的版本,覆盖近94%的现有用户。当我在 Eclipse 中设置 Android 应用程序时,我看到这个屏幕
文档说
最低 SDK 版本
该值指定 您所需的最低 API 级别 应用程序。
这意味着什么?这是否意味着我可以选择 2.3 作为构建目标,但选择 7 作为最低 sdk 版本并支持所有运行 2.1 的设备?
I have looked at http://developer.android.com/resources/dashboard/platform-versions.html
2.1 : 27.2%
2.2 : 63.9%
2.3 : 0.8%
2.3.3 : 1.7%
3.0 : 0.2%
I am pretty sure I will use Android 2.1 as my version, covering almost 94% of current users. When I go to set up an android application in eclipse, I see this screen
The documentation says
Min SDK Version
This value specifies
the minimum API Level required by your
application.
What does that mean? Does that mean I can pick 2.3 for my build target, but select 7 as the min sdk version and have all devices running 2.1 supported?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我发现了类似的帖子(Android Min SDK Version vs. Target SDK Version< /a>)。以下是部分答案:
一个整数,指定应用程序运行所需的最低 API 级别。如果系统的 API Level 低于该属性中指定的值,Android 系统将阻止用户安装应用程序。您应该始终声明此属性。
一个整数,指定应用程序所针对的 API 级别。
I found a similar post ( Android Min SDK Version vs. Target SDK Version ). Here's part of the answer:
An integer designating the minimum API Level required for the application to run. The Android system will prevent the user from installing the application if the system's API Level is lower than the value specified in this attribute. You should always declare this attribute.
An integer designating the API Level that the application is targetting.
你是对的。该应用程序根本无法安装在 API 级别较低的设备上。对于此类设备,在 Android Market 中不会显示。
以下列出了所有 API 级别:
http://developer.android.com/guide/appendix/api-levels.html
You're correct. The application simply won't install on devices with lower API level. And won't be visible in Android Market for such devices.
Here are listed all API levels:
http://developer.android.com/guide/appendix/api-levels.html
据我了解,“最小 SDK 版本”控制您的用户是否收到“不支持此应用程序”消息框。例如,如果他们运行 1.6 (API 4) 并且您在该框中插入了 7...,无论您是否选中了 1.6 框,他们都会收到该消息。
我一直不太明白为什么它看起来可以任意设置。我认为这种设置方式允许开发人员针对多个目标和功能进行构建,而不必被迫仅与一个 SDK 版本兼容。
It is my understanding that the "Min SDK Version" controls whether or not your users receive the "This application is not supported" message box. For example, if they were running 1.6 (API 4) and you inserted a 7 in that box.... they'll receive the message regardless of whether or not you've checked the 1.6 box.
I never quite understood why it appears that this can be arbitrarily set. I think it's set up that way to allow the developer to build against multiple targets and features without being forced to have compatibility with only one SDK version.
min-sdk=7 (Android 2.1) 表示您的应用程序无法安装在 API 级别 6 (android 2.0.1) 或更低(1.5 或 1.6)的设备中。当然,您可以将应用程序安装在 API 级别 7 或更高级别 (> 2.1) 的设备中。
min-sdk=7 (Android 2.1) means your app cannot be installed in device with API level 6 (android 2.0.1) or below (1.5 or 1.6). Of course you can install your app in device with API level 7 or above ( > 2.1).