Hi all,
I’ve tried remove, add cordova android platform again and again. and even tried to uninstall, install the npm also.
This is my ionic info.
cli packages: (/usr/local/lib/node_modules)
_ @ionic/cli-utils : 1.19.1_
_ ionic (Ionic CLI) : 3.19.1_
global packages:
_ cordova (Cordova CLI) : 8.0.0 _
local packages:
_ @ionic/app-scripts : 3.1.8_
_ Cordova Platforms : android 7.0.0 ios 4.5.4_
_ Ionic Framework : ionic-angular 3.9.2_
System:
_ Node : v8.1.0_
_ npm : 5.0.3 _
_ OS : macOS High Sierra_
_ Xcode : Xcode 9.2 Build version 9C40b _
Environment Variables:
_ ANDROID_HOME : not set_
Misc:
_ backend : pro_
And this is my error.
FAILURE: Build failed with an exception.
*** What went wrong:**
Execution failed for task ‘:app: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.
*** Get more help at https://help.gradle.org**
BUILD FAILED in 22s
(node:4060) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /Users/phyopwintthu/IonicProjects/macallan_apps/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
*** What went wrong:**
Execution failed for task ‘:app: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.
*** Get more help at https://help.gradle.org**
BUILD FAILED in 22s
(node:4060) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I’ve spent the whole morning solving this and still cannot done. Could someone help me please.