控制台信息:
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 Manual chapter on the daemon at https://docs.gradle.org/6.3/userguide/gradle_daemon.html
Process command line: E:\DevelopTools\Java\OpenJDK8U-jdk_x86-32_windows_hotspot_8u282b08\jdk8u282-b08\bin\java.exe -XX:MaxHeapSize=1024m -Xms1024m -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country=CN -Duser.language=zh -Duser.variant -cp E:\DevelopTools\gradle-6.8.2-all\gradle_resp\wrapper\dists\gradle-6.3-bin\8tpu6egwsccjzp10c1jckl0rx\gradle-6.3\lib\gradle-launcher-6.3.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.3
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
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
-----------------------
Check the JVM arguments defined for the gradle process in:
- gradle.properties in project root directory
解决:
实际的物理内存是足够的,原因是使用了32位的JDK。解决办法就是重新安装64位jdk