• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1page.title=Build Tools
2@jd:body
3
4<div id="qv-wrapper">
5<div id="qv">
6
7  <h2>See Also</h2>
8  <ol>
9    <li><a href="{@docRoot}tools/building/index.html">Building and Running</a></li>
10  </ol>
11
12</div>
13</div>
14
15<p>Build Tools is a component of the Android SDK required for building Android
16  application code. The latest version of these tools is included in the
17  <a href="{@docRoot}sdk/index.html">SDK starter package</a> and installed in the
18  <code>&lt;sdk&gt;/build-tools/</code> directory.</p>
19
20<p>You should always keep your Build Tools component updated by downloading the latest version
21  using the <a href="{@docRoot}tools/help/sdk-manager.html">Android SDK Manager</a>. By default,
22  the Android SDK uses the most recent downloaded version of the Build Tools. If your projects
23  depend on older versions of the Build Tools, the SDK Manager allows you to download and maintain
24  separate versions of the tools for use with those projects.</p>
25
26<p>To use a specific version of the Build Tools in your application project:</p>
27
28<div class="toggle-content closed">
29<p style="margin-top:5px"><a href="#" onclick="return toggleContent(this)">
30  <img src="/assets/images/triangle-closed.png" class="toggle-content-img" alt=""
31  />Using Eclipse</a></p>
32
33  <div class="toggle-content-toggleme">
34  <ol>
35    <li>In the root folder of your application project, find the {@code project.properties}
36      file.</li>
37    <li>Open the file and specify the Build Tools version by adding a {@code buildtools} property
38      on a separate line:
39<pre>
40sdk.buildtools=17.0.0
41</pre>
42    </li>
43  </ol>
44  </div>
45</div>
46
47<div class="toggle-content closed">
48<p style="margin-top:5px"><a href="#" onclick="return toggleContent(this)">
49  <img src="/assets/images/triangle-closed.png" class="toggle-content-img" alt=""
50  />Using Android Studio</a></p>
51
52  <div class="toggle-content-toggleme">
53  <ol>
54    <li>In the root folder of your application project, find the {@code build.gradle}
55      file.</li>
56    <li>Open the file and specify the Build Tools version by adding a {@code buildToolsVersion}
57      property to the {@code android} section:
58<pre>
59android {
60    ...
61    buildToolsVersion "17.0.0"
62    ...
63}
64</pre>
65    </li>
66  </ol>
67  </div>
68</div>
69
70
71<h2 id="notes">Revisions</h2>
72
73<p>The sections below provide notes about releases of the Build Tools. To determine which
74revisions of the Build Tools are available in your SDK, refer to the <em>Installed Packages</em>
75listing in the Android SDK Manager.</p>
76
77<div class="toggle-content opened">
78  <p><a href="#" onclick="return toggleContent(this)">
79    <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-content-img"
80      alt=""/>Build Tools, Revision 21.0.0</a> <em>(October 2014)</em>
81  </p>
82  <div class="toggle-content-toggleme">
83
84    <dl>
85      <dt>General Notes:</dt>
86      <dd>
87        <ul>
88          <li>Added support for Android 5.0 (API level 21).</li>
89          <li>RenderScript now supports seamless 32/64-bit operation for API level 21 and higher.</li>
90          <li>Fixed issue with the Gradle build system when using the JaCoCo plugin.
91          (<a href="http://b.android.com/69174">Issue 69174</a>)</li>
92          <li>Added an <em>input-list</em> option for use with long command lines on Windows.</li>
93        </ul>
94      </dd>
95    </dl>
96  </div>
97</div>
98
99<div class="toggle-content closed">
100  <p><a href="#" onclick="return toggleContent(this)">
101    <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
102      alt=""/>Build Tools, Revision 20.0.0</a> <em>(June 2014)</em>
103  </p>
104  <div class="toggle-content-toggleme">
105
106    <dl>
107      <dt>General Notes:</dt>
108      <dd>
109        <ul>
110          <li>Added support for Android Wear.</li>
111        </ul>
112      </dd>
113    </dl>
114
115  </div>
116</div>
117
118<div class="toggle-content closed">
119  <p><a href="#" onclick="return toggleContent(this)">
120    <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
121      alt=""/>Build Tools, Revision 19.1.0</a> <em>(May 2014)</em>
122  </p>
123  <div class="toggle-content-toggleme">
124
125    <dl>
126      <dt>General Notes:</dt>
127      <dd>
128        <ul>
129          <li>Added <code>zipalign</code> to the Build Tools.</li>
130          <li>Modified <code>aapt</code> to ignore XML files that fail to compile.</li>
131        </ul>
132      </dd>
133    </dl>
134
135  </div>
136</div>
137
138<div class="toggle-content closed">
139  <p><a href="#" onclick="return toggleContent(this)">
140    <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
141      alt=""/>Build Tools, Revision 19.0.3</a> <em>(March 2014)</em>
142  </p>
143  <div class="toggle-content-toggleme">
144
145    <p>Fixed an issue with RenderScript support.</p>
146
147  </div>
148</div>
149
150<div class="toggle-content closed">
151  <p><a href="#" onclick="return toggleContent(this)">
152    <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
153      alt=""/>Build Tools, Revision 19.0.2</a> <em>(February 2014)</em>
154  </p>
155  <div class="toggle-content-toggleme">
156
157    <dl>
158      <dt>Fixed RenderScript build issues:</dt>
159      <dd>
160        <ul>
161          <li>Fixed a problem with RenderScript bitcode encoding.
162            (<a href="http://b.android.com/64775">Issue 64775</a>)
163          </li>
164          <li>Fixed a problem with RenderScript missing math symbols
165            (<a href="http://b.android.com/64110">Issue 64110</a>)
166          </li>
167        </ul>
168      </dd>
169    </dl>
170    <p></p>
171
172  </div>
173</div>
174
175
176
177<div class="toggle-content closed">
178  <p><a href="#" onclick="return toggleContent(this)">
179    <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
180      alt=""/>Build Tools, Revision 19.0.1</a> <em>(December 2013)</em>
181  </p>
182  <div class="toggle-content-toggleme">
183
184    <dl>
185      <dt>Fixed miscellaneous build issues:</dt>
186      <dd>
187        <ul>
188          <li>Fixed support for compiling RenderScript in NDK mode with Gradle.</li>
189          <li>Fixed {@code BufferOverflowException} problem in the dx build.
190            (<a href="http://b.android.com/61710">Issue 61710</a>)
191          </li>
192        </ul>
193      </dd>
194    </dl>
195    <p></p>
196
197  </div>
198</div>
199
200<div class="toggle-content closed">
201  <p><a href="#" onclick="return toggleContent(this)">
202    <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
203      alt=""/>Build Tools, Revision 19</a> <em>(October 2013)</em>
204  </p>
205  <div class="toggle-content-toggleme">
206
207    <p>Added support for Android 4.4 (API level 19) build targets.</p>
208
209  </div>
210</div>
211
212<div class="toggle-content closed">
213  <p><a href="#" onclick="return toggleContent(this)">
214    <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
215      alt=""/>Build Tools, Revision 18.1.1</a> <em>(September 2013)</em>
216  </p>
217  <div class="toggle-content-toggleme">
218
219    <p>Fixed several minor build issues.</p>
220
221  </div>
222</div>
223
224<div class="toggle-content closed">
225  <p><a href="#" onclick="return toggleContent(this)">
226    <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
227      alt=""/>Build Tools, Revision 18.1.0</a> <em>(September 2013)</em>
228  </p>
229  <div class="toggle-content-toggleme">
230
231    <p>Fixed issue with RenderScript support mode.</p>
232
233  </div>
234</div>
235
236<div class="toggle-content closed">
237  <p><a href="#" onclick="return toggleContent(this)">
238    <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
239      alt=""/>Build Tools, Revision 18.0.1</a> <em>(July 2013)</em>
240  </p>
241  <div class="toggle-content-toggleme">
242
243    <p>Added support for Android 4.3 (API level 18) build targets.</p>
244
245  </div>
246</div>
247
248<div class="toggle-content closed">
249  <p><a href="#" onclick="return toggleContent(this)">
250    <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
251      alt=""/>Build Tools, Revision 17</a> <em>(May 2013)</em>
252  </p>
253  <div class="toggle-content-toggleme">
254
255    <p>Initial release.</p>
256
257    <dl>
258      <dt>General Notes:</dt>
259      <dd>
260        <ul>
261          <li>Included support for Android 4.2 (API level 17) build targets.</li>
262          <li>Decoupled the build-specific components of the Android SDK from the platform-tools
263          component, so that the build tools can be updated independently of the integrated
264          development environment (IDE) components.</li>
265        </ul>
266      </dd>
267    </dl>
268
269  </div>
270</div>
271