When trying to create an android apk file using ionic and gradle, i get an error
FAILURE: Build failed with an exception. * What went wrong: Unable to star
Change argument -Xmx2048m to 1024 or 512 at line:args.push('-Dorg.gradle.jvmargs=-Xmx1024m'); in your project file
-Xmx2048m
platforms\android\cordova\lib\builders\GradleBuilder.js
It's work for me!!