本文介绍了Android的工作室 - 分SDK版本/目标SDK版本与编译SDK版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是最小的SDK版本/目标SDK版本和编译SDK版本?

What are the differences between "min sdk version/target sdk version" and "compile sdk version"?

我知道分钟和目标SDK的手段,但什么编译SDK版本是什么意思?在Eclipse我有最小值/最大值和目标SDK但在机器人工作室有这三个设置。

I know what min and target sdk means but what does compile sdk version mean?In eclipse I have min/max and target sdk but in android studio there are these three settings.

推荐答案

要详细说明@ anuraagy的回答:

To elaborate on @anuraagy's answer:

分钟SDK版本是Android SDK的应用程序可以运行的最早版本。通常这是因为与先前的API中的问题,缺乏功能性,或一些其他行为的问题。

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 behavioral issue.

目标SDK版本该版本的应用程序是定位上运行。理想情况下,这是因为某种最佳的运行条件。如果你是让你的应用程序的第19版这是在将指定。它可以运行在早期或更高版本,但是这是你所瞄准。这主要是为了说明如何对现有的应用程序是在市场上,等使用。

target sdk version 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版本的Andr​​oid您的IDE(或编译我想其他方式)的该版本使用,使您的应用程序时,您发布的apk文件。这是测试您的应用程序,因为它是一个共同的需要为您开发它来编译你的应用程序非常有用。由于这将是编译为一个APK的版本,自然会成为你的发布版本。同样,最好是有这样的比赛,你的目标SDK版本。

compile sdk version 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 you target sdk version.

我不是故意撕掉别人的答案,但我真的希望这揭示了区分这三个方面的一些情况。

I didn't mean to rip off somebody else's answer, but I really hope this sheds some light on distinguishing these three terms.

这篇关于Android的工作室 - 分SDK版本/目标SDK版本与编译SDK版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 01:54