1 Reply Latest reply on Mar 15, 2017 8:55 AM by AdamReed

    failed for task ':packageDebug'. > Java heap space

    AdamReed

      I have an app built with Cordova that's already completed, built for iOS, working, and out on Apple's iTunes App Store. But when I try to build it for Android, I get:

       

      ....

      :packageDebug FAILED

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':packageDebug'.

      > Java heap space

       

      * Try:

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

       

      BUILD FAILED

       

      Total time: 2 mins 2.215 secs

      Error: /Users/areed2/Dropbox/cordova/mom/platforms/android/gradlew: Command failed with exit code 1 Error output:

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':packageDebug'.

      > Java heap space

       

      * Try:

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

       

      I still get this with all plugins removed, with 6G of gradle heap space, etc. What should I do/try next?