# Failed to determine android gradle plugin version

**URL:** <https://discuss.bitrise.io/t/failed-to-determine-android-gradle-plugin-version/2557>\
**Category:** Builds\
**Created:** [August 24, 2017, 12:49pm UTC](https://discuss.bitrise.io/t/failed-to-determine-android-gradle-plugin-version/2557 "2017-08-24T12:49:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PetruLingurar](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@PetruLingurar](https://discuss.bitrise.io/u/PetruLingurar)\
**Post date:** [August 24, 2017, 12:49pm UTC](https://discuss.bitrise.io/t/failed-to-determine-android-gradle-plugin-version/2557/1 "2017-08-24T12:49:47Z")

</div>

## Description of the issue

Android build fails in second step after “git-clone” - "install-missing-android-tools " with message “Failed to determine android gradle plugin version, error: missing android gradle plugin version”

## Environment:

**Where did the issue happen?**  
On Bitirise in Android & Docker, on Ubuntu 16.04 (pre-installed tools) stack  
Project with same configuration was successfully build last week.  
The project in it’s current state can be perfectly built on our Windows machines using Android Studio 3.0 Beta 2.

**Which build Step causes the issue and which version of the step?**  
Android build fails in second step after “git-clone” - "install-missing-android-tools " with message “Failed to determine android gradle plugin version, error: missing android gradle plugin version”

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : NO
- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ : Caches are not used
- _If you have multiple different build configurations (workflows), does the issue affect all/more than one?_ : Using only one workflow
- _If it’s an issue which happens sporadically, what’s the frequency? (e.g. Once a day ; about x% of the builds)_ : first time
- _Does upgrading the build Step to the latest version help?_ : All steps are set to using latest version
- _When did the issue start?_ : Today, with seemingly no connection to project changes. The source code changed, the gradle files not.

### Linux/Android stack builds

_Can it be reproduced by running the build locally, after doing a new git clone of the repository into the `/tmp` directory and running the build from there with the Bitrise CLI ( [https://www.bitrise.io/cli](https://www.bitrise.io/cli) )? If no, can it be reproduced with Docker (using the same docker images / environment we use on [bitrise.io](http://bitrise.io))? Related guide: [http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/](http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/) ._  
Could not install Bitrise CLI due to “Error: Permission denied @ rb\_file\_s\_rename - (\_examples, /tmp/bitrise-20170824-14165-j6kwm6/bitrise-1.8.0/src/github.com/bitrise-io/bitrise/\_examples)”

### Other stacks

_Can it be reproduced by running the build locally with our CLI ( [https://www.bitrise.io/cli](https://www.bitrise.io/cli) ), after doing a new git clone of the repository into the `/tmp` directory and running the build from there with the Bitrise CLI ( [https://www.bitrise.io/cli](https://www.bitrise.io/cli) )?_  
Could not install Bitrise CLI due to “Error: Permission denied @ rb\_file\_s\_rename - (\_examples, /tmp/bitrise-20170824-14165-j6kwm6/bitrise-1.8.0/src/github.com/bitrise-io/bitrise/\_examples)”

## Build log

Will be sent to email.

---

<div class="post-metadata">

**Author:** ![PetruLingurar](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@PetruLingurar](https://discuss.bitrise.io/u/PetruLingurar)\
**Post date:** [August 24, 2017, 1:24pm UTC](https://discuss.bitrise.io/t/failed-to-determine-android-gradle-plugin-version/2557/2 "2017-08-24T13:24:42Z")

</div>

Issue resolved by downgrading “Install missing Android tools” step from “always latest” (2.0.0) to previous 1.1.0 .

---

<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:** [August 24, 2017, 2:12pm UTC](https://discuss.bitrise.io/t/failed-to-determine-android-gradle-plugin-version/2557/3 "2017-08-24T14:12:43Z")

</div>

Hi @PetruLingurar,  
thanks for the report!

We released a new version ([2.0.1](https://github.com/bitrise-steplib/steps-install-missing-android-tools/releases/tag/2.0.1)) of `install-missing-android-tools`, which does not use the Android Gradle Plugin version anymore.
