# java.lang.OutOfMemoryError: Java heap space

**URL:** <https://discuss.bitrise.io/t/java-lang-outofmemoryerror-java-heap-space/25011>\
**Category:** Android\
**Created:** [March 7, 2025, 2:16pm UTC](https://discuss.bitrise.io/t/java-lang-outofmemoryerror-java-heap-space/25011 "2025-03-07T14:16:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victvs](https://avatars.discourse-cdn.com/v4/letter/v/3bc359/32.png) [@Victvs](https://discuss.bitrise.io/u/Victvs)\
**Post date:** [March 7, 2025, 2:16pm UTC](https://discuss.bitrise.io/t/java-lang-outofmemoryerror-java-heap-space/25011/1 "2025-03-07T14:16:03Z")

</div>

Our builds for Android have started to fail.

We have had successful builds in the past. I have tried to use the JAVA\_OPTS and GRADLE\_OPTS En Vars to increase the heap space, but then they fail on the Missing components step.

Ive seen others with this issue and tried the resolutions suggest but without much success.

Anyone managed to solve this

> **[Bitrise - Mobile Continuous Integration and Delivery - iOS & Android...](https://app.bitrise.io/users/sign_in)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

---

<div class="post-metadata">

**Author:** ![BrianSportyma](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@BrianSportyma](https://discuss.bitrise.io/u/BrianSportyma)\
**Post date:** [March 13, 2025, 9:40am UTC](https://discuss.bitrise.io/t/java-lang-outofmemoryerror-java-heap-space/25011/2 "2025-03-13T09:40:08Z")

</div>

Yes we are having the same issue since yesterday, this is very annoying

---

<div class="post-metadata">

**Author:** ![Victvs](https://avatars.discourse-cdn.com/v4/letter/v/3bc359/32.png) [@Victvs](https://discuss.bitrise.io/u/Victvs)\
**Post date:** [March 13, 2025, 2:06pm UTC](https://discuss.bitrise.io/t/java-lang-outofmemoryerror-java-heap-space/25011/3 "2025-03-13T14:06:59Z")

</div>

Anyone managed to solve this yet. @Bitrise help would be useful at this point

Tried the same with the ENVARS settings in both the workflow and Gradle files and no luck

---

<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:** [March 25, 2025, 10:25am UTC](https://discuss.bitrise.io/t/java-lang-outofmemoryerror-java-heap-space/25011/4 "2025-03-25T10:25:44Z")

</div>

Hi @Victvs & @BrianSportyma , would you mind open a support ticket so we can take a deeper look at your issue?

---

<div class="post-metadata">

**Author:** ![maksim.glushkov](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@maksim.glushkov](https://discuss.bitrise.io/u/maksim.glushkov)\
**Post date:** [April 14, 2025, 1:35pm UTC](https://discuss.bitrise.io/t/java-lang-outofmemoryerror-java-heap-space/25011/5 "2025-04-14T13:35:40Z")

</div>

We started seeing the same problem around the same dates.  
Are there any updates or news?

---

<div class="post-metadata">

**Author:** ![HyloDevUser](https://avatars.discourse-cdn.com/v4/letter/h/848f3c/32.png) [@HyloDevUser](https://discuss.bitrise.io/u/HyloDevUser)\
**Post date:** [July 31, 2025, 8:48am UTC](https://discuss.bitrise.io/t/java-lang-outofmemoryerror-java-heap-space/25011/6 "2025-07-31T08:48:49Z")

</div>

We are also experiencing this, after trying to upgrade our version of React Native
