Android build fails (gradle again)

Hi!

I stumbled acrros the same problem as described in #25128.

I tried

  • platforms\android>gradlew.bat --info build clean
  • modified .gradle\gradle.propertiesin my home directory, playing around with the values. My last attempt was:
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m

which I believe should be more than enough, but I always get the error

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I heard it might be an issue with 32 bit vs 64 bit, but I have no idea how to enforce 64 bit

Any idea what I could try more?

node --version
v5.4.1

npm --version
3.3.4

ionic --version
2.0.0-beta.31

Hi!

I know it is too late, but I will try to answer this question just for other people that reaches this post.

At the time of writing this answer, only the stable versions of Node.js (4.x) that installs npm (2.x) are supported in Ionic 2. Never use the newer experimental versions of Node.js and npm 3.x.

Regards,
Xavi