Erro de build Apache Cordova

25/01/2018

0

Pessoal,
no comando "cordova run android" tenho o seguinte erro:

c:\\\\\\\\cordova\\\\\\\\projetos\\\\\\\\MyApp>cordova run android
Android Studio project detected
ANDROID_HOME=C:\\\\\\\\Users\\\\\\\\hugow\\\\\\\\AppData\\\\\\\\Local\\\\\\\\Android\\\\\\\\Sdk
JAVA_HOME=C:\\\\\\\\Program Files (x86)\\\\\\\\Java\\\\\\\\jdk1.8.0_161
studio
Starting a Gradle Daemon (subsequent builds will be faster)

BUILD SUCCESSFUL in 33s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

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:9928) 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
(node:9928) [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.

Ambiente:
WINDOWS 10
APACHE ANT 1.10.1
JAVA SDK 1.8.0_161 x86
NODE.JS 8.9.4 x64
ANDROID STUDIO 3.0.1

Alguma sugestão?
Hugo Alves

Hugo Alves

Responder

Posts

25/01/2018

Hugo Alves

RESOLVIDO! BASTOU INSTALAR A VERSÃO 1.8.0_151 DO JAVA SDK! FICA A DICA!
Responder

Assista grátis a nossa aula inaugural

Assitir aula

Saiba por que programar é uma questão de
sobrevivência e como aprender sem riscos

Assistir agora

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar