Eclipse integration gradle compilation error Error: Unable to start the daemon process

Error: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 http://gradle.org/ docs/2.2.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 object heap 
Error: Could not create the Java Virtual Machine. 
Error: A fatal exception has occurred. Program will exit. 


Of course, attempts to compile or run are unsuccessful.
According to google, it turns out that android studio configures the project through gradle, and there is no default configuration for android studio in the system, just like the eclipse.ini file in Eclipse.

Solution:

Under the .gradle folder of the current user of the operating system: C:\Users\Administrator\.gradle, set gradle.properties, if not, add it.

Add the following configuration information to the file:

[plain] view plain copy View the code slice on CODE derived from my code slice
org.gradle.jvmargs=-Xmx512m 

Restart eclipse, re-import, compile the project, the problem is solved.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327010004&siteId=291194637