Android的摇篮:buildtoolsVersion VS compileSdkVersion [英] Android gradle: buildtoolsVersion vs compileSdkVersion

查看:193
本文介绍了Android的摇篮:buildtoolsVersion VS compileSdkVersion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是之间的 buildtoolsVersion VS compileSdkVersion 在build.gradle一个Android项目的区别?

What's the difference between buildtoolsVersion vs compileSdkVersion in the build.gradle for an Android project?

编辑:具体来说,我想澄清的构建工具是什么

Specifically, I'd like clarification on what the build tool is?

推荐答案

compileSdkVersion 的是Android的API版本编译反对。

compileSdkVersion is the API version of Android that you compile against.

buildToolsVersion 是您要使用的编译器(AAPT,DX,renderscript编译器等)的版本。为每个API级(从18),有一个匹配的.0.0版本

buildToolsVersion is the version of the compilers (aapt, dx, renderscript compiler, etc...) that you want to use. For each API level (starting with 18), there is a matching .0.0 version.

在IO 2014年,我们发布API 20和构建工具20.0.0去用它。

At IO 2014, we release API 20 and build-tools 20.0.0 to go with it.

Android的版本中,我们将发布编译器的更新,所以我们将发布版本.0.1,.0.2,等...因为我们不希望静静地更新这些版本下你,这是你来间移动到新的版本时,它的方便你。

Between Android releases we will release updates of the compilers, and so we'll release version .0.1, .0.2, etc... Because we don't want to silently update these version under you, it's up to you to move to the new version when it's convenient for you.

您可以使用的集结工具比你compileSdkVersion更高版本,以获取新/更好的编译器,而不是改变你对建立自己的应用程序。

You can use a higher version of the build-tools than your compileSdkVersion, in order to pick up new/better compiler while not changing what you build your app against.

这篇关于Android的摇篮:buildtoolsVersion VS compileSdkVersion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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