Olá, preciso de uma ajuda para gerar um apk android. Esta apresentando o erro:
**$ ionic cordova build android --release**
Running app-scripts build: --platform android --target cordova
[22:08:09] build dev started …
[22:08:09] clean started …
[22:08:09] clean finished in 13 ms
[22:08:09] copy started …
[22:08:09] deeplinks started …
[22:08:10] deeplinks finished in 97 ms
[22:08:10] transpile started …
[22:08:22] transpile finished in 12.63 s
[22:08:22] preprocess started …
[22:08:22] preprocess finished in 2 ms
[22:08:22] webpack started …
[22:08:23] copy finished in 13.55 s
[22:08:46] webpack finished in 23.47 s
[22:08:46] sass started …
Without from option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined to prevent this warning.
[22:08:49] sass finished in 2.92 s
[22:08:49] postprocess started …
[22:08:49] postprocess finished in 20 ms
[22:08:49] lint started …
[22:08:49] build dev finished in 39.81 s
cordova build android --release
Android Studio project detected
ANDROID_HOME=C:\Program Files\Android\android-sdk\platforms
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131
studio
Subproject Path: CordovaLib
Subproject Path: app
[22:08:59] lint finished in 10.67 s
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
- 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 https://docs.gradle.org/4.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 2097152KB object heap
- 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
(node:4756) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
- 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 https://docs.gradle.org/4.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 2097152KB object heap
-
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
Obragado