Skip to content

Support Android builds larger than 500MB in size #713

@usmandotmughal

Description

@usmandotmughal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions