I'm using Android studio to make a small project, create the project in my mac computer at home, and sync it to it.
Pull down this project in the company's computer and open it through Android studio. The project after opening it will report the following error:
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 /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, trying to compile or run is unsuccessful.
Google discovered that Android studio was configured for the project through gradle, but there was no default configuration for Android studio in the system, just like the file in Eclipse.
Solution:
In the .gradle folder of the current user of the operating system: C:\Users\Administrator\.gradle setting, if not, add it.
Add the following configuration information to the file:
=-Xmx512m
Restart the project and solve the problem.