Android SDK build tools

老子叫甜甜 提交于 2019-12-05 01:34:20

问题


If i have two or more version of android sdk build tools as shown below then when which one will be chosen by the eclipse while building. IS it anything to with the SDK platform chosen for developing apk.

Here which one will be used either 17 or 19?


回答1:


The build tools specifies the toolchain used to build Android projects. In Eclipse you can change which version is used with the project.properties file by specifying sdk.buildtools, e.g.

sdk.buildtools=17.0.0

You will probably never need to do that, as it will use the most recent installed version by default. It is not tightly coupled to the SDK version, and has only been recently split apart from the SDK itself (since version 17).




回答2:


If there are different versions for Android SDK Build Tools , By default eclipse uses the most recent version of the Android Build Tools.

But if your project requirement belongs to different version(may be older) , you can do this using following steps.

  1. In the root folder of your application project, find the project.properties file.
  2. Open the file and specify the Build Tools version by adding a build-tools property on a separate line:

e.g. sdk.buildtools =17.0.0



来源:https://stackoverflow.com/questions/21779398/android-sdk-build-tools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!