最小 SDK 版本/目标 SDK 版本与编译 SDK 版本有什么区别? [英] What is the difference between min SDK version/target SDK version vs. compile SDK version?

查看:83
本文介绍了最小 SDK 版本/目标 SDK 版本与编译 SDK 版本有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最小sdk版本/目标sdk版本"和编译sdk版本"有什么区别?我知道 min 和 target sdk 是什么意思,但是编译 sdk 版本是什么意思?

What are the differences between "min sdk version/target sdk version" and "compile sdk version"? I know what min and target sdk means, but what does compile sdk version mean?

在 Eclipse 中,我有 min/max 和 target sdk,但在 android studio 中有这三个设置.

In Eclipse, I have min/max and target sdk, but in android studio there are these three settings.

推荐答案

min sdk version 是您的应用程序可以在其上运行的最早的 Android SDK 版本.通常这是因为早期 API 存在问题、缺乏功能或其他一些行为问题.

The min sdk version is the earliest release of the Android SDK that your application can run on. Usually this is because of a problem with the earlier APIs, lacking functionality, or some other behavioural issue.

目标 sdk 版本是您的应用目标运行的版本.理想情况下,这是因为某种最佳运行条件.如果您要为版本 19 制作您的应用程序",这就是指定的位置.它可能会在较早或较晚的版本上运行,但这正是您的目标.这主要是为了表明您的应用程序在市场上的使用程度等.

The target sdk version is the version your application was targeted to run on. Ideally, this is because of some sort of optimal run conditions. If you were to "make your app for version 19", this is where that would be specified. It may run on earlier or later releases, but this is what you were aiming for. This is mostly to indicate how current your application is for use in the marketplace, etc.

编译 sdk 版本 是当您发布 .apk 文件时,您的 IDE(或我认为的其他编译方式)用来制作您的应用程序的 android 版本.这对于测试您的应用程序非常有用,因为在您开发应用程序时通常需要对其进行编译.由于这将是要编译为 APK 的版本,因此它自然是您发布的版本.同样,建议将此与您的目标 sdk 版本匹配.

The compile sdk version is the version of android your IDE (or other means of compiling I suppose) uses to make your app when you publish a .apk file. This is useful for testing your application as it is a common need to compile your app as you develop it. As this will be the version to compile to an APK, it will naturally be the version of your release. Likewise, it is advisable to have this match your target sdk version.

这篇关于最小 SDK 版本/目标 SDK 版本与编译 SDK 版本有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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