If it is set to 1024m or the original error is reported, change it to 512m and try again.Ģ. Open the gradle.properties file, check the parameter =-Xms1024m, if not, add it, generally set to 1024m, not the bigger the better. Since the computer memory is fixed, it can only reduce the memory application space of the virtual machine.ġ. ![]() The second solution : modify the parameters. Now it is directly replaced with 64G memory, how to start it. For example, the original 8G memory is obviously not enough for the virtual machine to run. The first solution is simple and rude, no parameters need to be adjusted. It is best to configure the parameters: _JAVA_OPTIONS: 4Stack=true solution It is said that the virtual machine does not have enough memory space to start the service (this means that the memory space required by the virtual machine is too large, and the computer memory is not enough), country=CN -Duser.language=zh -Duser.variant -cpĮrror occurred during initialization of VMĬould not reserve enough space for 2097152KB object heap Path\Java\jdk1.8.0_221\bin\java.exe -Xmn512m -XX:SurvivorRatio=8 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -Xverify:none -Xms2048m -Xmx2048m -Dfile.encoding=UTF-8 -Duser. The specific file address and parameter content are given later. The reason is because of an incorrect configuration in the project file gradle.properties. Gradle sync failed: Unable to start the daemon process. Process command line: C:\Program Files (x86)\Java\jdk1.8.0_221\bin\java.exe -Xmn512m -XX:SurvivorRatio=8- XX:+UseParNewGC -XX:+UseConcMarkSweepGC -Xverify:none -Xms2048m -Xmx2048m -Dfile.encoding=UTF-8 untry=CN -Duser.language=zh -Duser.variant -cp C:\Users\AndroidDeveleper. ![]() Please refer to the User Manual chapter on the daemon at 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_OPTIONS: 4Stack=true -… (show balloon) This problem might be caused by incorrect configuration of the daemon.įor example, an unrecognized jvm option is used. Gradle sync failed: Unable to start the daemon process.ġ1:03 Gradle sync failed: Unable to start the daemon process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |