# Android builds suddenly started to take too much time

**URL:** <https://discuss.bitrise.io/t/android-builds-suddenly-started-to-take-too-much-time/11920>\
**Category:** Builds\
**Tags:** android, gradle\
**Created:** [February 12, 2020, 9:15am UTC](https://discuss.bitrise.io/t/android-builds-suddenly-started-to-take-too-much-time/11920 "2020-02-12T09:15:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nationaledtech](https://avatars.discourse-cdn.com/v4/letter/n/e9a140/32.png) [@nationaledtech](https://discuss.bitrise.io/u/nationaledtech)\
**Post date:** [February 12, 2020, 9:15am UTC](https://discuss.bitrise.io/t/android-builds-suddenly-started-to-take-too-much-time/11920/1 "2020-02-12T09:15:29Z")

</div>

## Description of the issue

I have 2 Android apps configured to be built. Yesterday builds for one of them started to take too much time. I’m on free plan, but have 20 minutes limit because of referrals. Usually my builds take like 10-12 minutes, now one of the apps doesn’t fit in 20 minutes, looks like it stuck on `Calling mockable JAR artifact transform to create file: /root/.gradle/caches/transforms-2/files-2.1/b66646254b384f467d3e99bbba4e7a2e/android.jar with input /opt/android-sdk-linux/platforms/android-28/android.jar` command for at least good 5 minutes. Other app (the same repo, different module) still builds without problems.

## Environment:

**Where did the issue happen?**  
Standard Bitrise Machine, it’s “linux-docker-android”.

**Which build Step causes the issue and which version of the step?**

gradle-runner@1.9.1

## 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)._ : NO
- _Does the issue happen sporadically, or every time?_ : every time, none of the apps’ builds is successful starting from yesterday.
- _Does upgrading the build Step to the latest version help?_ : NO
- _When did the issue start?_ : Yesterday

### Local reproduction

_Can it be reproduced on your own Mac/PC by following our [local debug guide](http://discuss.bitrise.io/t/how-to-debug-your-build-locally-it-works-on-my-mac-pc-but-not-on-bitrise-io/392)?_ It cannot be reproduced, I’ve tried full clean build via Bitrise CLI and removing gradle caches.

### Local reproduction: Linux / Android (docker based) 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/) ._ Didn’t try to download Docker images locally, they are pretty heavy for my current Internet bandwidth.

## Build log

_Please copy paste the build’s [bitrise.io](http://bitrise.io) URL here (or if the issue happens somewhere else then the full logs), or if you can’t share the url / log here then send the url or full log through a private channel (e.g. email - [https://www.bitrise.io/contact](https://www.bitrise.io/contact) ), with a link to the related Discuss issue._ Sent via email.

---

<div class="post-metadata">

**Author:** ![Roland-Bak](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/roland-bak/32/3480_2.png) [@Roland-Bak](https://discuss.bitrise.io/u/Roland-Bak)\
**Post date:** [February 12, 2020, 12:07pm UTC](https://discuss.bitrise.io/t/android-builds-suddenly-started-to-take-too-much-time/11920/2 "2020-02-12T12:07:13Z")

</div>

Hi there @vionika!

Could you please send us the logfile and also enable Support Access ([Enabling the Bitrise Support user for your app | Bitrise DevCenter](https://devcenter.bitrise.io/troubleshooting/enabling-bitrise-support-user/))  
so we might take a closer look at the issue? 🙂

---

<div class="post-metadata">

**Author:** ![nationaledtech](https://avatars.discourse-cdn.com/v4/letter/n/e9a140/32.png) [@nationaledtech](https://discuss.bitrise.io/u/nationaledtech)\
**Post date:** [February 12, 2020, 1:14pm UTC](https://discuss.bitrise.io/t/android-builds-suddenly-started-to-take-too-much-time/11920/3 "2020-02-12T13:14:52Z")

</div>

Hi. I’ve already sent logs to [letsconnect@bitrise.io](mailto:letsconnect@bitrise.io). Also, just enabled Support User.

---

<div class="post-metadata">

**Author:** ![nationaledtech](https://avatars.discourse-cdn.com/v4/letter/n/e9a140/32.png) [@nationaledtech](https://discuss.bitrise.io/u/nationaledtech)\
**Post date:** [February 13, 2020, 10:31am UTC](https://discuss.bitrise.io/t/android-builds-suddenly-started-to-take-too-much-time/11920/4 "2020-02-13T10:31:40Z")

</div>

@Roland-Bak update on this. I’ve bumped up gradle version from 5.4.1 to 5.6.4 and build finally squeezed into 18 minutes. 15 minutes is still gradle runner task and 8-9 minutes was taken exclusively by “Calling mockable JAR artifact transform to create file”. For me it feels like slow I/O. Which is weird, because other app is not affected by anything.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [March 14, 2020, 10:31am UTC](https://discuss.bitrise.io/t/android-builds-suddenly-started-to-take-too-much-time/11920/5 "2020-03-14T10:31:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
