Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Android builds larger than 500MB in size #713

Closed
usmandotmughal opened this issue Jul 18, 2024 · 4 comments
Closed

Support Android builds larger than 500MB in size #713

usmandotmughal opened this issue Jul 18, 2024 · 4 comments

Comments

@usmandotmughal
Copy link

When we try to make build for android of app size more than 500mb it will give us java.lang.OutOfMemoryError error. Please increase the java memory allowance limit for future releases.

Platforms involved
Building on: All Android devices.

Full build log

WARNING: [XmlResourcesTransformer] No mapping for: android/support/FILE_PROVIDER_PATHS
Exception in thread "ForkJoinPool.commonPool-worker-9" java.lang.OutOfMemoryError: Java heap space
Failed to execute org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker@43b0d0d3.
java.lang.OutOfMemoryError: Java heap space
Exception in thread "ForkJoinPool.commonPool-worker-5" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Execution worker Thread 3" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Execution worker Thread 6" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Execution worker Thread 7" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Execution worker" java.lang.OutOfMemoryError: Java heap space

FAILURE: Build failed with an exception.

  • What went wrong:
    Java heap space

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

@sekodev
Copy link
Contributor

sekodev commented Jul 21, 2024

There are many games bigger than 500 mb in size such as Veritas. Can this be related to largeHeap option? Also, found this on the forums.

@Shchvova
Copy link
Contributor

I think issue is with Java running out of memory when building the app. Not during the runtime.

@fahadmirzamobizion
Copy link

@Shchvova Yes you are right. Looking forward for this fix in next release.

@usmandotmughal
Copy link
Author

It's fixed in 3709.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants