# Android compile issue (SDK Build tools license)

**URL:** <https://discuss.bitrise.io/t/android-compile-issue-sdk-build-tools-license/313>\
**Category:** Builds\
**Created:** [January 17, 2017, 9:16am UTC](https://discuss.bitrise.io/t/android-compile-issue-sdk-build-tools-license/313 "2017-01-17T09:16:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![z17jdavi](https://avatars.discourse-cdn.com/v4/letter/z/9dc877/32.png) [@z17jdavi](https://discuss.bitrise.io/u/z17jdavi)\
**Post date:** [January 17, 2017, 9:16am UTC](https://discuss.bitrise.io/t/android-compile-issue-sdk-build-tools-license/313/1 "2017-01-17T09:16:27Z")

</div>

Hi , in my last build I have a fail about the android sdk build tools. How can I accept the license from Bitrise?

> Checking the license for package Android SDK Build-Tools 24.0.1 in /opt/android-sdk-linux/licenses  
> Warning: License for package Android SDK Build-Tools 24.0.1 not accepted.

> FAILURE: Build failed with an exception.

> - What went wrong:  
> A problem occurred configuring project ‘:app’.
> 
> > You have not accepted the license agreements of the following SDK components:  
> > [Android SDK Build-Tools 24.0.1].  
> > Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.  
> > Alternatively, to learn how to transfer the license agreements from one workstation to another, go to [Exporting licenses - Android Studio Project Site](http://d.android.com/r/studio-ui/export-licenses.html)

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 17, 2017, 9:19am UTC](https://discuss.bitrise.io/t/android-compile-issue-sdk-build-tools-license/313/2 "2017-01-17T09:19:50Z")

</div>

Thanks for reporting here!

Please see [Weekly Virtual Machine / Stack updates - 2017.01.14](http://discuss.bitrise.io/t/weekly-virtual-machine-stack-updates-2017-01-14/139/5) and let us know if you have any questions!

---

<div class="post-metadata">

**Author:** ![z17jdavi](https://avatars.discourse-cdn.com/v4/letter/z/9dc877/32.png) [@z17jdavi](https://discuss.bitrise.io/u/z17jdavi)\
**Post date:** [January 19, 2017, 9:52am UTC](https://discuss.bitrise.io/t/android-compile-issue-sdk-build-tools-license/313/3 "2017-01-19T09:52:03Z")

</div>

Thanks I just had to replace my sdk build tools. 24.0.1 was not supported but it was working last week. It may be interesting (if possible for you) when we run a build, that you inspect the code before to check the build tools version, and report the problem directly : something like WRONG SDK BUILD TOOLS, please update it in your code.

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 19, 2017, 10:28am UTC](https://discuss.bitrise.io/t/android-compile-issue-sdk-build-tools-license/313/4 "2017-01-19T10:28:54Z")

</div>

Absolutely, that’s a great idea!

We have a new step, now mentioned in [Weekly Virtual Machine / Stack updates - 2017.01.14](http://discuss.bitrise.io/t/weekly-virtual-machine-stack-updates-2017-01-14/139), which can auto detect the required build tools and a couple of other packages, and auto install those for you (accepting the license as well).

For more info please see:

> [@Android - automatic dependency installer (e.g. build-tools) step : Install missing Android tools](http://discuss.bitrise.io/t/android-automatic-dependency-installer-e-g-build-tools-step-install-missing-android-tools/316):
>
> The step repo: [https://github.com/bitrise-steplib/steps-install-missing-android-tools](https://github.com/bitrise-steplib/steps-install-missing-android-tools) This new step will analyze your Android (gradle) project, determine the desired compile sdk version (android-xx package), build tools version (build-tools-x.x.x package) and if google play services or support library is used and also installs the missing tools. How / where to add this Step to your existing Workflow: You can add this step (Install missing Android tools) right after the Git Clone step in your w…
