Error occurred during initialization of VM

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/5.4.1/userguide/gradle_daemon.html
Process command line: C:\Program Files (x86)\Java\jdk1.8.0_211\bin\java.exe -Xmx1536m -Dfile.encoding=GBK -Duser.country=CN -Duser.language=zh -Duser.variant -cp C:\Users\Administrator.gradle\wrapper\dists\gradle-5.4.1-all\3221gyojl5jsh0helicew7rwx\gradle-5.4.1\lib\gradle-launcher-5.4.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 5.4.1
Please read the following process output to find out more:


Error occurred during initialization of VM
Could not reserve enough space for 1572864KB object heap

AS 打开编译之前的项目突然报如上错误

注释掉项目里
gradle.properties的配置
org.gradle.jvmargs=-Xmx1536m

并不知道何种原因!

你可能感兴趣的:(Error occurred during initialization of VM)