# Adding modules to Android project is slowing build times

**URL:** <https://discuss.bitrise.io/t/adding-modules-to-android-project-is-slowing-build-times/9381>\
**Category:** Question & Answer\
**Tags:** android\
**Created:** [June 20, 2019, 7:06pm UTC](https://discuss.bitrise.io/t/adding-modules-to-android-project-is-slowing-build-times/9381 "2019-06-20T19:06:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![semanticer](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@semanticer](https://discuss.bitrise.io/u/semanticer)\
**Post date:** [June 20, 2019, 7:06pm UTC](https://discuss.bitrise.io/t/adding-modules-to-android-project-is-slowing-build-times/9381/1 "2019-06-20T19:06:40Z")

</div>

Hi, we recently refactored our android project and went from 1 to 13 modules and turned on parallel Gradle builds. This made our local builds a little bit faster but out Bitrise build went from 5 min to 60 min. Is there anything we are missing or what can we do about it? Since we are planning to continue in this trend and speed up our local builds by creating more and more modules it seems that Bitrise will be unusable for us very soon.  
This is one of our simple workflows:  
(all the time is taken by android-build and android-lint steps)

```
---

  primary-release:
    steps:
    - activate-ssh-key@4.0.3:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone@4.0.14: {}
    - cache-pull@2.0.1: {}
    - install-missing-android-tools@2.3.5:
        inputs:
        - gradlew_path: "$PROJECT_LOCATION/gradlew"
    - android-build@0.10.0:
        inputs:
        - project_location: "$PROJECT_LOCATION"
        - variant: "$RELEASE_VARIANT"
        - cache_level: all
        - module: "$MODULE"
    - android-lint@0.9.6:
        inputs:
        - variant: "$RELEASE_VARIANT"
        - project_location: "$PROJECT_LOCATION"
    - android-unit-test:
        inputs:
        - variant: "$RELEASE_VARIANT"
        - module: "$MODULE"
    - deploy-to-bitrise-io@1.4.2: {}
    - cache-push@2.2.0: {}

```

This is quite critical for us, so we will be very thankful for any help.

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [July 3, 2019, 8:16am UTC](https://discuss.bitrise.io/t/adding-modules-to-android-project-is-slowing-build-times/9381/2 "2019-07-03T08:16:12Z")

</div>

Hi @semanticer!

Sorry for the huge delay. Could you please also include an example build URL of what goes down?

---

<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:** [August 2, 2019, 8:16am UTC](https://discuss.bitrise.io/t/adding-modules-to-android-project-is-slowing-build-times/9381/3 "2019-08-02T08:16:14Z")

</div>

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