我在通过Cordova构建Android系统时遇到问题

时间:2019-06-17 12:00:58

标签: android cordova

我在nodejs命令提示符下使用cordova build android命令构建android应用时遇到问题,每当我键入“ cordova build”时,这就是我在下面看到的错误:

C:\Users\lovely\Desktop\hello>cordova build

Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=C:\Users\lovely\AppData\Local\Android\sdk (DEPRECATED)
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.10.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

0 个答案:

没有答案