phonegap / build

This is the public repository for PhoneGap Build source and bug tracking
92 stars 33 forks source link

Random Error: Not enought RAM: The Gradle daemon needs a larger heap #624

Open VanVan opened 6 years ago

VanVan commented 6 years ago

The compilation servers need more RAM. This error occurs 4 times out of 5. 1 times out of 5, everything works well.

`To run dex in process, the Gradle daemon needs a larger heap. It currently has 2048 MB. For faster builds, increase the maximum heap size for the Gradle daemon to at least 4608 MB (based on the dexOptions.javaMaxHeapSize = 4g). To do this set org.gradle.jvmargs=-Xmx4608M in the project gradle.properties. For more information see https://docs.gradle.org/current/userguide/build_environment.html

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000000076f100000, 62914560, 0) failed; error='Cannot allocate memory' (errno=12) :transformClassesWithDexForArmv7Release FAILED`

goya commented 6 years ago

hmm not good. currently checking this out.

VanVan commented 6 years ago

Any news about it ?

CyrilleGuimezanes commented 6 years ago

Hello, Same trouble here. Unable to build my app under phonegap build.

EDIT: I'm now able to build with this config:


  <preference name="phonegap-version" value="cli-7.0.1"/>
  <preference name='pgb-builder-version' value='1' />

Hope this can help

nildowjunior commented 6 years ago

Any update on this? Same trouble here.