# Android - automatic dependency installer (e.g. build-tools) step : Install missing Android tools

**URL:** <https://discuss.bitrise.io/t/android-automatic-dependency-installer-e-g-build-tools-step-install-missing-android-tools/316>\
**Category:** Changelog\
**Tags:** step\
**Created:** [January 17, 2017, 10:09am UTC](https://discuss.bitrise.io/t/android-automatic-dependency-installer-e-g-build-tools-step-install-missing-android-tools/316 "2017-01-17T10:09:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![godreikrisztian](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/godreikrisztian/32/22_2.png) [@godreikrisztian](https://discuss.bitrise.io/u/godreikrisztian)\
**Post date:** [January 17, 2017, 10:09am UTC](https://discuss.bitrise.io/t/android-automatic-dependency-installer-e-g-build-tools-step-install-missing-android-tools/316/1 "2017-01-17T10:09:39Z")

</div>

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 workflow, and that’s all!

**If you have a recent Android project, where `GRADLE_BUILD_FILE_PATH` is set as an App Env Var** (the automatic [bitrise.io](https://www.bitrise.io) scanner adds this environment variable for Android projects automatically for quite some time now), **you don’t have to set anything else!**

_If your project does not have the `GRADLE_BUILD_FILE_PATH` **App Env Var** then you can either set this to the relative path of the root `build.gradle` file (e.g.: `./MyAndroidProject/build.gradle` if your android project is in a sub directory called `MyAndroidProject` inside your repository, or simply `./build.gradle` if build.gradle is in your repository’s root) as an **App Env Var** , or simply specify the path for this new step’s **Path to the root build.gradle file** input. Or, alternatively, register your repository again on [bitrise.io](https://www.bitrise.io), to get an up to date, auto-generated base workflow! 😉_

---

<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, 10:18am UTC](https://discuss.bitrise.io/t/android-automatic-dependency-installer-e-g-build-tools-step-install-missing-android-tools/316/2 "2017-01-17T10:18:41Z")

</div>

Awesome @godreikrisztian! 😉

When will this be released? 😉 I’d love to suggest this step as a solution for these issues [Android compile issue (SDK Build tools license)](http://discuss.bitrise.io/t/android-compile-issue-sdk-build-tools-license/313) / [Weekly Virtual Machine / Stack updates - 2017.01.14](http://discuss.bitrise.io/t/weekly-virtual-machine-stack-updates-2017-01-14/139) , instead of the **Script** step…

---

<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, 10:21am UTC](https://discuss.bitrise.io/t/android-automatic-dependency-installer-e-g-build-tools-step-install-missing-android-tools/316/3 "2017-01-17T10:21:40Z")

</div>

Actually, one more idea: should this step be able to `gradlew dependencies`? Maybe with a retry? E.g. to solve issues like: [https://github.com/bitrise-io/build.issues/issues/1](https://github.com/bitrise-io/build.issues/issues/1)

Edit: not a good idea, as `gradlew dependencies` **does not accept the licenses** , so you’ll end up with issues like [Android compile issue (SDK Build tools license)](http://discuss.bitrise.io/t/android-compile-issue-sdk-build-tools-license/313) …

Maybe with built in license handling somehow…

---

<div class="post-metadata">

**Author:** ![godreikrisztian](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/godreikrisztian/32/22_2.png) [@godreikrisztian](https://discuss.bitrise.io/u/godreikrisztian)\
**Post date:** [January 17, 2017, 10:47am UTC](https://discuss.bitrise.io/t/android-automatic-dependency-installer-e-g-build-tools-step-install-missing-android-tools/316/4 "2017-01-17T10:47:01Z")

</div>

Regarding to

> [@viktorbenei](#):
>
> When will this be released?

The first version of the step is ready, i just need to share it, then include the step in the default android workflow generated by the scanner.

It should be done in a couple of hours.

---

<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, 10:47am UTC](https://discuss.bitrise.io/t/android-automatic-dependency-installer-e-g-build-tools-step-install-missing-android-tools/316/5 "2017-01-17T10:47:43Z")

</div>

Awesome, thank you! ❤

---

<div class="post-metadata">

**Author:** ![godreikrisztian](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/godreikrisztian/32/22_2.png) [@godreikrisztian](https://discuss.bitrise.io/u/godreikrisztian)\
**Post date:** [January 17, 2017, 1:16pm UTC](https://discuss.bitrise.io/t/android-automatic-dependency-installer-e-g-build-tools-step-install-missing-android-tools/316/6 "2017-01-17T13:16:04Z")

</div>

`install-missing-android-tools` step’s first version (0.9.1) is available in the steplib.

---

<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, 1:28pm UTC](https://discuss.bitrise.io/t/android-automatic-dependency-installer-e-g-build-tools-step-install-missing-android-tools/316/7 "2017-01-17T13:28:16Z")

</div>

Hurray!! 🚀 😉

---

<div class="post-metadata">

**Author:** ![godreikrisztian](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/godreikrisztian/32/22_2.png) [@godreikrisztian](https://discuss.bitrise.io/u/godreikrisztian)\
**Post date:** [January 17, 2017, 1:49pm UTC](https://discuss.bitrise.io/t/android-automatic-dependency-installer-e-g-build-tools-step-install-missing-android-tools/316/8 "2017-01-17T13:49:30Z")

</div>

`project-scanner@1.0.0` is available in the steplib with the new install-missing-android-tools step.

---

<div class="post-metadata">

**Author:** ![vgaidarji](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/vgaidarji/32/60_2.png) [@vgaidarji](https://discuss.bitrise.io/u/vgaidarji)\
**Post date:** [May 31, 2017, 2:11pm UTC](https://discuss.bitrise.io/t/android-automatic-dependency-installer-e-g-build-tools-step-install-missing-android-tools/316/9 "2017-05-31T14:11:54Z")

</div>

I just checked step sources. Huge amount of work, @godreikrisztian 😱

---

<div class="post-metadata">

**Author:** ![godreikrisztian](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/godreikrisztian/32/22_2.png) [@godreikrisztian](https://discuss.bitrise.io/u/godreikrisztian)\
**Post date:** [May 31, 2017, 3:21pm UTC](https://discuss.bitrise.io/t/android-automatic-dependency-installer-e-g-build-tools-step-install-missing-android-tools/316/10 "2017-05-31T15:21:41Z")

</div>

Thanks, we try to do our best 😉
