blob: c3c83ef2a4c2edcd84e36189cbc4a5fe4d38dd94 [file] [log] [blame]
Joe Fernandez7618a962013-10-29 17:35:12 -07001page.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
Joe Fernandez7618a962013-10-29 17:35:12 -070077<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"
Ricardo Cerveraea40a262014-02-25 12:01:27 -080080 alt=""/>Build Tools, Revision 19.0.3</a> <em>(March 2014)</em>
81 </p>
82 <div class="toggle-content-toggleme">
83
84 <p>Fixed an issue with RenderScript support.</p>
85
86 </div>
87</div>
88
89<div class="toggle-content closed">
90 <p><a href="#" onclick="return toggleContent(this)">
91 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
Ricardo Cervera6b74ee32014-01-30 17:02:34 -080092 alt=""/>Build Tools, Revision 19.0.2</a> <em>(February 2014)</em>
93 </p>
94 <div class="toggle-content-toggleme">
95
96 <dl>
97 <dt>Fixed RenderScript build issues:</dt>
98 <dd>
99 <ul>
100 <li>Fixed a problem with RenderScript bitcode encoding.
101 (<a href="http://b.android.com/64775">Issue 64775</a>)
102 </li>
103 <li>Fixed a problem with RenderScript missing math symbols
104 (<a href="http://b.android.com/64110">Issue 64110</a>)
105 </li>
106 </ul>
107 </dd>
108 </dl>
109 <p></p>
110
111 </div>
112</div>
113
114
115
116<div class="toggle-content closed">
117 <p><a href="#" onclick="return toggleContent(this)">
118 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
Joe Fernandez7618a962013-10-29 17:35:12 -0700119 alt=""/>Build Tools, Revision 19.0.1</a> <em>(December 2013)</em>
120 </p>
121 <div class="toggle-content-toggleme">
122
123 <dl>
124 <dt>Fixed miscellaneous build issues:</dt>
125 <dd>
126 <ul>
127 <li>Fixed support for compiling RenderScript in NDK mode with Gradle.</li>
128 <li>Fixed {@code BufferOverflowException} problem in the dx build.
129 (<a href="http://b.android.com/61710">Issue 61710</a>)
130 </li>
131 </ul>
132 </dd>
133 </dl>
134 <p></p>
135
136 </div>
137</div>
138
139<div class="toggle-content closed">
140 <p><a href="#" onclick="return toggleContent(this)">
141 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
142 alt=""/>Build Tools, Revision 19</a> <em>(October 2013)</em>
143 </p>
144 <div class="toggle-content-toggleme">
145
146 <p>Added support for Android 4.4 (API level 19) build targets.</p>
147
148 </div>
149</div>
150
151<div class="toggle-content closed">
152 <p><a href="#" onclick="return toggleContent(this)">
153 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
154 alt=""/>Build Tools, Revision 18.1.1</a> <em>(September 2013)</em>
155 </p>
156 <div class="toggle-content-toggleme">
157
158 <p>Fixed several minor build issues.</p>
159
160 </div>
161</div>
162
163<div class="toggle-content closed">
164 <p><a href="#" onclick="return toggleContent(this)">
165 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
166 alt=""/>Build Tools, Revision 18.1.0</a> <em>(September 2013)</em>
167 </p>
168 <div class="toggle-content-toggleme">
169
170 <p>Fixed issue with RenderScript support mode.</p>
171
172 </div>
173</div>
174
175<div class="toggle-content closed">
176 <p><a href="#" onclick="return toggleContent(this)">
177 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
178 alt=""/>Build Tools, Revision 18.0.1</a> <em>(July 2013)</em>
179 </p>
180 <div class="toggle-content-toggleme">
181
182 <p>Added support for Android 4.3 (API level 18) build targets.</p>
183
184 </div>
185</div>
186
187<div class="toggle-content closed">
188 <p><a href="#" onclick="return toggleContent(this)">
189 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
190 alt=""/>Build Tools, Revision 17</a> <em>(May 2013)</em>
191 </p>
192 <div class="toggle-content-toggleme">
193
194 <p>Initial release.</p>
195
196 <dl>
197 <dt>General Notes:</dt>
198 <dd>
199 <ul>
200 <li>Included support for Android 4.2 (API level 17) build targets.</li>
201 <li>Decoupled the build-specific components of the Android SDK from the platform-tools
202 component, so that the build tools can be updated independently of the integrated
203 development environment (IDE) components.</li>
204 </ul>
205 </dd>
206 </dl>
207
208 </div>
209</div>